MCPcopy Create free account
hub / github.com/cinder/Cinder / getData

Function getData

include/cinder/Surface.h:184–184  ·  view source on GitHub ↗

Retuns the raw data of an image as a pointer to either uin8t_t values in the case of a Surface8u or floats in the case of a Surface32f

Source from the content-addressed store, hash-verified

182
183 //! Retuns the raw data of an image as a pointer to either uin8t_t values in the case of a Surface8u or floats in the case of a Surface32f
184 T* getData() { return mData; }
185 const T* getData() const { return mData; }
186 T* getData( const ivec2 &offset ) { return reinterpret_cast<T*>( reinterpret_cast<unsigned char*>( mData + offset.x * getPixelInc() ) + offset.y * mRowBytes ); }
187 const T* getData( const ivec2 &offset ) const { return reinterpret_cast<T*>( reinterpret_cast<unsigned char*>( mData + offset.x * getPixelInc() ) + offset.y * mRowBytes ); }

Callers 6

getDataRedFunction · 0.70
getDataGreenFunction · 0.70
getDataBlueFunction · 0.70
getDataAlphaFunction · 0.70
getPixelFunction · 0.70
setPixelFunction · 0.70

Calls 1

getPixelIncFunction · 0.85

Tested by

no test coverage detected