| 78 | } |
| 79 | |
| 80 | void GlTexture::loadData( const Settings& settings, const char* arr ) |
| 81 | { |
| 82 | if ( !valid() ) |
| 83 | gen(); |
| 84 | bind(); |
| 85 | |
| 86 | setTextureWrapType( settings.wrap, type_ ); |
| 87 | setTextureFilterType( settings.filter, type_ ); |
| 88 | GL_EXEC( glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ) ); |
| 89 | texImage_( settings, arr ); |
| 90 | |
| 91 | size_ = settings.size(); |
| 92 | } |
| 93 | |
| 94 | void GlTexture::loadDataOpt( bool refresh, const Settings& settings, const char* arr ) |
| 95 | { |
no test coverage detected