Re: [AD] Proposal: set_rgb_mode

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2002-03-20, Javier González <xaviergonz@xxxxxxxxxx> wrote:
> >    int al_set_color_layout(int layout);
> >       blah blah blah.  Returns the previous layout.
...
> What about
> int al_get_color_layout(void);
> void al_set_color_layout(int layout);
> 
> I don't really like the get/set megamix like in textmode =)

Me either, but that's the closest thing I could think of.

> (because in case you just want to know what color layout/textmode is
> active, you have to "set" one first, isn't that odd ;)

I was about to ask why you needed to know the colour layout was, but I
just thought of a situation: bitmap loaders.

> On a side note, why don't we use enums instead of defines in allegro 5?

(I'm talking about Allegro 4.2 for the moment.)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/