Sign in to follow this  
Followers 0
Jacob Jingle

OpenGL 2D Book

4 posts in this topic

Anyone have a good recommandation for an OpenGL book for learning 2d graphics? (C++/Windows/OpenGL 4.3 preferred)

Thx ahead of time,
JJ
0

Share this post


Link to post
Share on other sites
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
1

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.
2

Share this post


Link to post
Share on other sites
[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.
0

Share this post


Link to post
Share on other sites
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
0

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  
Followers 0