[SDL] About SDL_Draw library

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


于 Tue, 9 Oct 2007 17:42:14 +0100
Brian <brian.ripoff at gmail.com> 写道:

> Do you just want pixel access functions (I don't know what else
> SDL_Draw can do), use the functions here from the SDL documentation:
> http://www.libsdl.org/cgi/docwiki.cgi/Pixel_20Access
> 

SDL_Draw can do other things, like draw a circle etc.
Acutally I want to learn the way of SDL_Draw library implement this
functions.

thanks for your url, it is useful.


> On 09/10/2007, cocobear <cocobear.cn at gmail.com> wrote:
> > I am reading the source code of SDL_draw library,here is the
> > prototype of Draw_Pixel function:
> >
> > void Draw_Pixel(SDL_Surface *super,
> >                 Sint16 x, Sint16 y,
> >                 Uint32 color);
> >
> > But I can't find the implement of this function.
> > I can only find a function pointer of Draw_Pixel :
> >
> > extern DECLSPEC
> > void (*Draw_Pixel)(SDL_Surface *super,
> >                    Sint16 x, Sint16 y, Uint32 color);
> >
> > this is just a definition of Draw_Pixel(variable) ,isn't it?
> >
> > Anyone can help me?
> >
> >
> > Regards!
> >
> > /*
> >  *Welcome to cocobear's home!
> >  *http://cocobear.cn
> >  */
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



Regards!

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


More information about the SDL mailing list