Jump to content
  • Advertisement
Sign in to follow this  
transcendental

OpenGL 2D OpenGL

This topic is 5040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!