C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
I am loading a texture data from tga image file.Sizes 512x512 ,RGB 8 bit per channel.The texture is correct both on load and on save without mipmaps generation.However, when I try to do this:
I am loading a texture data from tga image file.Sizes 512x512 ,RGB 8 bit per channel.The texture is correct both on load and on save without mipmaps generation.However, when I try to do this:
pvrtexture::CPVRTextureHeader header1(pvrtexture::PVRStandard8PixelTypeRGB.PixelTypeID, height, width); pvrtexture::CPVRTexture texture(header1, imageData); bool result = pvrtexture::GenerateMIPMaps(texture, pvrtexture::EResizeMode::eResizeCubic, PVRTEX_ALLMIPLEVELS);