caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: Vu Ngoc San <san.vu-ngoc@laposte.net>
Cc: OCaML List Mailing <caml-list@inria.fr>
Subject: Re: [Caml-list] rgba/bgra in LablGL
Date: Thu, 1 Mar 2012 12:10:05 +0900	[thread overview]
Message-ID: <B7ECF0D0-7D9A-4D33-A43E-1182074A0CA7@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <alpine.LNX.2.00.1203010105380.7081@linmac>

On 2012/03/01, at 6:07, malc wrote:

> On Wed, 29 Feb 2012, Vu Ngoc San wrote:
> 
>> 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 ?
>> 
> 
> Well, one reason might be that GL_BGRA is an extension (GL_EXT_bgra), in
> practice there's no harm in adding it.

LablGL already supports numerous extensions (which are mostly standard),
so this is no concern.
Please just send me your patch, and I'll include it.
I should make a new release soon...

Jacques Garrigue

      reply	other threads:[~2012-03-01  3:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-29 20:50 Vu Ngoc San
2012-02-29 21:07 ` malc
2012-03-01  3:10   ` Jacques Garrigue [this message]

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=B7ECF0D0-7D9A-4D33-A43E-1182074A0CA7@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=san.vu-ngoc@laposte.net \
    /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;
as well as URLs for NNTP newsgroup(s).