| 32 | } |
| 33 | |
| 34 | Texture* TextureFactory::createEmptyTexture( const unsigned int& Width, const unsigned int& Height, |
| 35 | const unsigned int& Channels, |
| 36 | const Color& DefaultColor, const bool& Mipmap, |
| 37 | const Texture::ClampMode& ClampMode, |
| 38 | const bool& CompressTexture, const bool& KeepLocalCopy, |
| 39 | const std::string& Filename ) { |
| 40 | Image TmpImg( Width, Height, Channels, DefaultColor ); |
| 41 | return loadFromPixels( TmpImg.getPixelsPtr(), Width, Height, Channels, Mipmap, ClampMode, |
| 42 | CompressTexture, KeepLocalCopy, Filename ); |
| 43 | } |
| 44 | |
| 45 | Texture* TextureFactory::loadFromPixels( const unsigned char* Pixels, const unsigned int& Width, |
| 46 | const unsigned int& Height, const unsigned int& Channels, |
no test coverage detected