From: Brian P. <bri...@tu...> - 2005-02-25 15:11:17
|
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 |