• Advertisement

Archived

This topic is now archived and is closed to further replies.

GL Colour ordering...

This topic is 6072 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having a little trouble with colour component ordering, specifically between big/little endian platforms (and also between renderers on the same platform). A quick explanation:- The colour format used by glDrawPixels and other pixel transfer functions can be changed by specifying GL_BGRA_EXT in the calls, or by using glPixelStore with one of the SWAP constants, I can''t see any way to change the expected colour order when using "glColor4ubv", or prepacked colour arrays when using "glColorPointer". This is quite an annoying problem as it''s preventing me from writing a suitable wrapper class for the 3D api''s I''m using on several platforms, without programmatically flipping colour dwords over all the time... The ability to flip the expected colour order for glColor4ubv would be nice, though _any_ suggestions welcomed... Many thanks, Jans.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement