2D in OGL
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).
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement