[SDL] About SDL_Draw library

cocobear cocobear.cn at gmail.com
Fri Oct 12 01:12:26 PDT 2007


于 Wed, 10 Oct 2007 22:13:24 -0400
Jonathan Dearborn <grimfang4 at hotmail.com> 写道:

> Hi there, Coco.
>  
> If you'd like to see the source for Draw_Pixel, you'll have to
> download the source from SourceForge.  What you see there probably
> won't make you happy.  The Draw_Pixel function, like all the rest in
> SDL_Draw, is a mess of macros.  Like that other guy said, if you
> really want a pixel function, check the one in the SDL docs. Jonny D 
>  
> 

Thanks for you advice.
I had download the source code from SourceForge before.

mess of macros, I think so too :-)


> 
> 
> > Date: Tue, 9 Oct 2007 22:55:36 +0800> To: sdl at lists.libsdl.org>
> > From: cocobear.cn at gmail.com> Subject: [SDL] About SDL_Draw library>
> > > I am reading the source code of SDL_draw library,here is the
> > > prototype> of Draw_Pixel function:> > void Draw_Pixel(SDL_Surface
> > > prototype> *super,> Sint16 x, Sint16 y, > Uint32 color);> > But I
> > > prototype> can't find the implement of this function.> I can only
> > > prototype> find a function pointer of Draw_Pixel :> > extern
> > > prototype> DECLSPEC> void (*Draw_Pixel)(SDL_Surface *super,>
> > > prototype> DECLSPEC> Sint16 x, Sint16 y, Uint32 color);> > this
> > > prototype> DECLSPEC> is just a definition of
> > > prototype> DECLSPEC> Draw_Pixel(variable) ,isn't it?> > Anyone
> > > prototype> DECLSPEC> can help me?> > > Regards!> > /*> *Welcome
> > > prototype> DECLSPEC> to cocobear's home!> *http://cocobear.cn>
> > > prototype> DECLSPEC> */>
> > > prototype> DECLSPEC> _______________________________________________>
> > > prototype> DECLSPEC> SDL mailing list> SDL at lists.libsdl.org>
> > > prototype> DECLSPEC> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> _________________________________________________________________
> Climb to the top of the charts!  Play Star Shuffle:  the word
> scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct


Regards!

/*
 *Welcome to cocobear's home!
 *http://cocobear.cn
 */


More information about the SDL mailing list