Sign in to follow this  
transcendental

OpenGL 2D OpenGL

Recommended Posts

Any 2D OpenGL tutorials? I have a sprite game written using GDI. GDI used to be suffice for me. But I'm going to modify this game, so that the background is changing, opposed to the old one is static. I'm deciding to use OpenGL for this new version, meaning the sprite is a surface above the background surface.

Share this post


Link to post
Share on other sites
You probably want to look at Orthographic projection (NeHe #21) for this. Alternatively, you can set it up with the camera looking directly down your scene to simlate 2d drawing. As for rendering, look at GL_QUADS and set the texture on the quad to get your 'sprite'. The benefit of this is that you can employ blending and other texture filter goodies.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Free scaling and rotation is nice, too.

Share this post


Link to post
Share on other sites
I did the exact thing myself, I used

http://www.gametutorials.com/

and

http://nehe.gamedev.net/

These two sites with thier OpenGL tutorials got me going. It mostly takes time to learn the lingo. The code is fairly easy.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this