caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] rgba/bgra in LablGL
@ 2012-02-29 20:50 Vu Ngoc San
  2012-02-29 21:07 ` malc
  0 siblings, 1 reply; 3+ messages in thread
From: Vu Ngoc San @ 2012-02-29 20:50 UTC (permalink / raw)
  To: caml-list

Hi

My app uses LablGL (with ocamlSDL), in linux.

when I ported it to mac OS, I noticed that when loading images and 
displaying them as textures, the Red and Blue bytes were swapped.

The OpenGL doc says that one can specify RGBA or BGRA when loading textures.
However LablGL only has `rgba.

Hence I patched lablGL to add the `bgra <--> GL_BGRA tag, and it works 
as expected.

Can this be included in the official lablGL ? Or is there a reason not to ?

San

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-01  3:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-29 20:50 [Caml-list] rgba/bgra in LablGL Vu Ngoc San
2012-02-29 21:07 ` malc
2012-03-01  3:10   ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).