| 2278 | } |
| 2279 | |
| 2280 | void* 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 | |
| 2291 | Texture2dRef Texture2d::createFromKtx( const DataSourceRef &dataSource, const Format &format ) |
| 2292 | { |