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

Method getDataStorePtr

src/cinder/gl/Texture.cpp:2280–2289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2278}
2279
2280void* TextureData::getDataStorePtr( size_t offset ) const
2281{
2282#if ! defined( CINDER_GL_ES )
2283 if( mPbo && mPboMappedPtr ) {
2284 return ((uint8_t*)mPboMappedPtr) + offset;
2285 }
2286 else
2287#endif
2288 return mDataStoreMem.get() + offset;
2289}
2290
2291Texture2dRef Texture2d::createFromKtx( const DataSourceRef &dataSource, const Format &format )
2292{

Callers 4

replaceMethod · 0.80
updateMethod · 0.80
parseKtxFunction · 0.80
parseDdsFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected