GlTexture.cpp
Go to the documentation of this file.
50 void GlTexture::CreateTexture( Context const * logger, RenderTarget * target, int2 size, GlMinFiltering min, GlMagFiltering mag, bool repeat, PixelFormat storage_format, ColorSpace color_space )
61 this->_mipmaps = min == GlMinFiltering::NearestMipmapNearest || min == GlMinFiltering::LinearMipmapNearest || min == GlMinFiltering::NearestMipmapLinear || min == GlMinFiltering::LinearMipmapLinear;
81 logger->log( SRC_INFO, iv::Defs::Log::Warning, "Pixel storage does not support storage format ", storage_format, " in sRGB space." );
90 logger->log( SRC_INFO, iv::Defs::Log::Warning, "Pixel storage does not support storage format ", storage_format, " in linear space." );
94 logger->log( SRC_INFO, iv::Defs::Log::Warning, "Pixel storage does not support color space ", color_space, "." );
104 logger->log( SRC_INFO, iv::Defs::Log::Warning, "Pixel storage does not support storage format ", storage_format, " in linear space." );
141 void GlTexture::LoadData( Context const * logger, RenderTarget * target, uint8_t * values, size_t values_size, PixelFormat data_format )
156 logger->log( SRC_INFO, Defs::Log::Warning, "Unsupported pixel format ", data_format," when loading texture data." );
163 logger->log( SRC_INFO, Defs::Log::Warning, "Can not load pixel data. Texture is not allocated." );
169 logger->log( SRC_INFO, Defs::Log::Warning, "Wrong number of color data values in pixel array." );
175 logger->log( SRC_INFO, Defs::Log::Performance, "Loading data to texture with different PixelFormat (runtime transformation is needed)." );