2D Sprites with OpenGL

Hi, I read some emails about the use of 2d sprite in OpenGL (or other 3d
enviroment). I’m interested in this solution and I’d ask if anyone know some
example or tutorial about this techique. Is possibile to draw the GUI using
SDL 2d function and only the action part in OpenGL???
Thanls a lot.
Bye, Andrea.

Hi, I read some emails about the use of 2d sprite in OpenGL (or other
3d enviroment). I’m interested in this solution and I’d ask if anyone
know some example or tutorial about this techique.

I don’t know of any tutorial based on OpenGL, but there are some on
Direct3D. Different API, but the techniques are basically the same.

For some example code, you could look at Kobo Deluxe, which comes with
glSDL - but glSDL doesn’t exactly demonstrate an easy way of doing it.
(glSDL in designed to be compatible with SDL’s 2D API, rather than to be
a nice and efficient 2D-on-OpenGL library.)

Is possibile to draw
the GUI using SDL 2d function and only the action part in OpenGL???

Well, kind of - but I’m not even going to name the solution currently
built into SDL.

If you’re using OpenGL at all in your program, you might as well use it
for all rendering. It’s fast, powerful and pretty easy - and since your
applications needs OpenGL anyway for the 3D stuff, there’s nothing to
lose.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Thursday 10 January 2002 14:18, Andrea Massioli wrote:

Hi,

you can easy draw “2D/3D-Sprites” in OpenGL in the orthogonal mode. Check nehe.gamedev.net for further information.–
Alexander Bierbrauer

Coder & Coordinator of polyfrag
eMail: @Alexander_Bierbrauer
Web: http://www.polyfrag.com

~v^[running Linux Mandrake 8.1]^v~

Hi, I read some emails about the use of 2d sprite in OpenGL (or other 3d
enviroment). I’m interested in this solution and I’d ask if anyone know some
example or tutorial about this techique. Is possibile to draw the GUI using
SDL 2d function and only the action part in OpenGL???

Take a look at the -logo option in the testgl test application included with
the SDL source code. The latest version of SDL_ttf includes a glfont test
program that uses this concept to show text on an OpenGL scene.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment