BGRA to ARGB
Hi,
I've a array of color data (ARGB format) which i pass in to OpenGL through
GL.glColorPointer(4, GL_UNSIGNED_BYTE,0, *MyColorData);
OpenGL seems to be rendering with BGRA format so I have weird colors for my models. Is there anyway to specify what color format I'm using?? I don't want to reformat my data to BGRA.
Thanks in advance.
To Live Is To Die.
The default thing is RGBA rendering.
And allthough it is possible to set some input formats in Ogl(BGRA and so on) i don't think ARGB is one of them.
So your only option is really to swap around the bytes to fit RGBA, either at load time or just after.
It is not that hard.
And allthough it is possible to set some input formats in Ogl(BGRA and so on) i don't think ARGB is one of them.
So your only option is really to swap around the bytes to fit RGBA, either at load time or just after.
It is not that hard.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement