[SDL] Draw line function?
Asko Kauppi
askok at dnainternet.net
Tue Feb 20 23:42:02 PST 2007
SDL_gfx is the way you want to go.
http://www.ferzkopp.net/joomla/content/view/19/14/
SDL itself does not have line drawing primitives. My Lua/SDL binding
(which was part of LuaX) actually had SDL_gfx 'built-in' for this
reason. And I do have one extensive demo app which exercises the
primitives.
The binding can either be used with the custom LuaX distro, or recent
code can be compiled for stock Lua but there is no such distribution
out, yet. I am waiting for a CPAN-kind module deployment framework
for Lua.
Give me a line if interested, I'll help you get SDL_gfx rolling. :)
There's actually a video of SDL_gfx on PocketPC here:
http://kotisivu.dnainternet.fi/askok/luax/luax/video1.html )
-asko
L-28C kirjoitti 21.2.2007 kello 4.55:
> Hello everyone! :-D
>
> Hey, what's an easy function to draw a line from one point to
> another in
> a surface? I'm on Lua so I can't use additional SDL libraries like
> SDL_draw. :-(
>
> Thanks! ;-)
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list