[SDL] Linedrawing
Olof Næssén
olof.naessen at gmail.com
Sat Jan 5 10:41:24 PST 2008
You can take a look at the line drawing code of Guichan, it's pretty
straight forward and it's found here:
http://guichan.sourceforge.net/api/0.7.1/sdlgraphics_8cpp-source.html#l00504
/Olof
On 05/01/2008, Leo M. Cabrera <leo28c at gmail.com> wrote:
> Or maybe SGE or SDL_gfx :-P
>
> Zedr0n wrote:
> > Norbert Melzer <norbert.melzer <at> gmx.net> writes:
> >
> >
> >> Hi Group!
> >>
> >> I have a problem with drawing lines. I googled a bit and found finished
> >> c-code for a Bresenham-line in the wikipedia, I adopted this code into my
> >> C++ class (original code is the same, except that that the function is
> >> embedded in a class and putpixel is now this->putpixel).
> >>
> >
> > Any particular reason you don't want to use openGL? If not, then you
> > can just use gl functions to draw a line and be done with it :)
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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
>
More information about the SDL
mailing list