• Breaking News

    Convert D3DFMT_X8B8G8R8 to OpenGL format Hello. If i'm not mistaken X8B8G8R8 means that the first byte is present in a texture but shouldn't be used. Or to put it the other way the texture doesn't have alpha channel but one pixel is still 4 bytes. I'm a little confused because of why wasting file space? But anyway after reading such texture from a file i don't see how to create an opengl texture without data conversion. I can use GL_BGRA and turn off alpha/blending but it's a bit inconvenient if you are writing a library that returns a format to a user. Any suggestions to that problem? Only conversion to three components and GL_BGR format? https://ift.tt/eA8V8J

    Hello. If i'm not mistaken X8B8G8R8 means that the first byte is present in a texture but shouldn't be used. Or to put it the other way the texture doesn't have alpha channel but one pixel is still 4 bytes. I'm a little confused because of why wasting file space? But anyway after reading such texture from a file i don't see how to create an opengl texture without data conversion. I can use GL_BGRA and turn off alpha/blending but it's a bit inconvenient if you are writing a library that returns a format to a user. Any suggestions to that problem? Only conversion to three components and GL_BGR format?

    from GameDev.net http://bit.ly/2UvGyjF

    ليست هناك تعليقات

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728