Re: Implementing the GL_EXT_bgra extention

Brian Paul <[email protected]> Fri, 25 Feb 2005 08:13:24 -0700
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
brendan powers wrote:
> Hi. I am interested in implementing the GL_EXT_bgra extention. It
> looks fairly simple, becuase no new function were added to this
> extention. New toekns were added for a fiew functions. See
> http://www.msi.unilim.fr/~porquet/glexts/GL_EXT_bgra.txt.html.   I
> have read the sections in the documentation about adding extensions.
> They are a bit vague and seem a little out of date.

probably.


> How hard would implementing this function be?
> Any pointers to make it easier?

Basically, any place that GL_RGBA is accepted, GL_BGRA will also be 
accepted.  So, I'd start with a grep of the sources for GL_RGBA.  Most 
changes should be trivial.

One place that will require more attention is the util/pixel.c file. 
That's where pixel packing/unpacking is done.

state_limits.c and cr_extstring.h will also need updates.

-Brian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click