[SDL] aalineRGBA problem

Armin Steinhoff A-Steinhoff at web.de
Thu Jun 15 09:11:02 PDT 2006


Clemens Kirchgatterer <clemens at 1541.org> schrieb am 15.06.2006 11:29:54:
> 
> Armin Steinhoff <A-Steinhoff at web.de> wrote:
> 
> > > I stand corrected, but my understanding is that yes. Those masks,
> > > and those alone once bpp has been defined, define how SDL and
> > > others (like SDL_gfx) use the per pixel bits when they draw onto
> > > that surface aswell as when they blit from that surface.
> > 
> > The example 'testbitmap.c' is using  mask values which are plain zero
> > (LoadXBM) That's confusing ....
> 
> that is for letting SDL deside which pixelformat to use. if you do not
> need to know the exact pixel data layout, it is best to let SDL pick
> the best fitting one.

After looking into the sources and the structure of the format of the pixel, now I believe to understand the semantic of these masks :)
Thank's all for responding to my questions.

Best Regards

--Armin


> 
> clemens
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193





More information about the SDL mailing list