Re: [AD] Component ordering and mixing color depths

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


On Wed, Jan 08, 2003 at 11:55:06PM -0500, Robert Jr Ohannessian wrote:
> Should Allegro set up the component shifts in such a way that the
> RGBA components are in the same order for all color depths? Is
> there a good reason why this is not so?

IIRC Allegro uses the same byte ordering the video card is
using. This happens because byte order can't be predicted until
you set the graphic mode. The idea is that Allegro should be used
only in a graphic mode, and all data loaded after setting it.  So,
using the same byte ordering you avoid conversions during blit,
usually the most common function to draw graphics on vram, and the
most important to optimize.




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