Sign in to follow this  
Jacob Jingle

OpenGL 2D Book

Recommended Posts

ifthen    820
OpenGL is a 3D graphics library. The only way to make OpenGL "2D" is to set up ortographic projection, but there is no functionality to deal with 2D rendering techniques like sprites or tiles. You would need to code all of that yourself, which is a super overkill.

Use SDL (OpenGL windowing library that has, among other extending functionality, support for 2D rendering) or DirectDraw (Windows only). Edited by ifthen

Share this post


Link to post
Share on other sites
[url="http://sfml-dev.org/"]SFML[/url] uses OpenGL under the hood. SFML is much better suited for 2D graphics.

However, if you are insistent upon using OpenGL, I still recommend downloading SFML since it is open source (and has very simple, straight-forward, clean code), and see how they do it.

Share this post


Link to post
Share on other sites
Jacob Jingle    226
[quote name='ifthen' timestamp='1354219918' post='5005431']
OpenGL is a 3D graphics library[/quote]
I understand this. I'm looking for a book that is geared towards using it to do 2D graphics.

[quote]Use SDL/SFML[/quote]
I've actually been making simple 2D games and stuff with straight OpenGL. I just want a book that gives me more insight into what I've been doing.

Share this post


Link to post
Share on other sites
teccubus    307
2D is just a special case of 3D. What's the problem? If you know how to display transformed, flat, textured quads with blending and alpha-testing, you know everything about 2D in OpenGL. Edited by J. Evola's Apprentice

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