[SDL] Performance with 2D graphics and no OpenGL
Tom Davies
tdavies at gmail.com
Wed May 23 04:10:25 PDT 2007
Okay, that makes sense. This will also make it a lot easier to handle
scrolling and zooming I assume :)
On 5/23/07, Alberto Luaces <aluaces at udc.es> wrote:
>
> El Miércoles 23 Mayo 2007, Tom Davies escribió:
> > Perhaps this will be my best option then. I am reading up on tutorials
> for
> > OpenGL and SDL, but most seem geared towards 3D applications. If anyone
> can
> > point me towards some good resources I would really appreciate it.
> Thanks!
>
> Basically doing 2D with OpenGL is to pass all the coordinates with the
> third
> value set to zero (z=0) and do the most rotations about the Z axis
> (however
> you can get some nice effects rotating about the X and Y, too). To get rid
> of
> perspective issues, you can set an orthogonal perspective the one you
> expect
> to work with using gluOrtho2D:
>
> http://www.opengl.org/sdk/docs/man/xhtml/gluOrtho2D.xml
>
> So the coordinates you pass match exactly the window coordinates.
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070523/cf1d7a97/attachment.htm
More information about the SDL
mailing list