Re: [AD] ALLEGRO_PIXEL_FORMAT_LUMINANCE_8 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 6 May 2012 00:20:14 +0200, Elias Pschernig <info@xxxxxxxxxx> wrote:
> On Sat, 5 May 2012 12:52:39 +1000
> Peter Wang <novalazy@xxxxxxxxxx> wrote:
> >
> > What should we do about ALLEGRO_PIXEL_FORMAT_LUMINANCE_8, since
> > GL_LUMINANCE is deprecated.
> >
> > It only exists so we have a single channel format suitable for indexed
> > images. Maybe it is simplest to rename the pixel format, and to say
> > that it is not defined how the single channel is mapped to the G,B,A
> > channels?
>
> Yes. The name was always incorrect. (It never had anything to do with
> luminance. The fact that drawing a bitmap appeared gray was that the
> value simply got repeated for all channels but not because it was
> converted to luminance.)
How about ALLEGRO_PIXEL_FORMAT_SINGLE_CHANNEL_8?
It's just a bit long.
Peter