From: Vu Ngoc San <san.vu-ngoc@laposte.net>
To: caml-list@inria.fr
Subject: [Caml-list] rgba/bgra in LablGL
Date: Wed, 29 Feb 2012 21:50:13 +0100 [thread overview]
Message-ID: <4F4E8F85.7030708@laposte.net> (raw)
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
next reply other threads:[~2012-02-29 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 20:50 Vu Ngoc San [this message]
2012-02-29 21:07 ` malc
2012-03-01 3:10 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4E8F85.7030708@laposte.net \
--to=san.vu-ngoc@laposte.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox