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

Method load

src/cinder/gl/Texture.cpp:1701–1712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1699 }
1700
1701 void load( ImageTargetRef target ) {
1702 // get a pointer to the ImageSource function appropriate for handling our data configuration
1703 ImageSource::RowFunc func = setupRowFunc( target );
1704
1705 const uint8_t *data = mData.get();
1706 if( mRowBytes < 0 )
1707 data = data + ( mHeight - 1 ) * (-mRowBytes);
1708 for( int32_t row = 0; row < mHeight; ++row ) {
1709 ((*this).*func)( target, row, data );
1710 data += mRowBytes;
1711 }
1712 }
1713
1714 std::unique_ptr<uint8_t[]> mData;
1715 int32_t mRowBytes;

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected