2D in OGL

Started by
2 comments, last by dh 22 years, 1 month ago
Hi, I''m trying to make a tile based rpg similar (from the graphics engine standpoint) to Diablo. I am a decent c++ programmer but I am new to graphics apis. I tried to learn direct x but have given up. I want to try open gl but I am having trouble finding a tutorial that deals with 2d graphics. I try to skim throught the 3d tutotials to find what I want but its hard to pick out what I need. Can someone help me find a good ogl 2d tutorial or at least give me some code to play with (keep in mind I have no idea what im doing).
Advertisement
Look up the documentation for gluOrtho2D. That will help you set up a 2D projection. After that, you draw stuff using the same OpenGL commands that you use in 3D mode, but by ignoring the z coordinate.
Go here.
Thank you very much for the fast replies. I think the zelda program will be very useful to me.

This topic is closed to new replies.

Advertisement