Possible Duplicate:
What are some good learning resources for OpenGL?

I have learnt C++ and made some cool text based games and such but I would love to start graphical programming. I'm a decent artist (I will have some of my work below) I know the basics of C++ but I really would like to get into OpenGL.

I need someone to show me some good tutorials for OpenGL with C++ so I can really get into game development. My goal is to be able to program a simple 2D game by the end of the year and I have lots of time to do so. I'm en-rolled in a game development course next year and really need some help with starting off.


2 Answers 2


Pure Basics (for Latest/Modern OpenGL/OpenGL 3D Graphics Programming)

Online Resources (for Latest/Modern OpenGL/OpenGL 3D Graphics Programming)

Basics Examples (from http://en.wikibooks.org/wiki/OpenGL_Programming)

Intermediate Examples (from http://en.wikibooks.org/wiki/OpenGL_Programming)

Other samples

Community Resources

  • 1
    \$\begingroup\$ I totally agree with your answer except for the 'Beginning OpenGL Game Programming' book, which seems outdated. (It was long before OpenGL3 was released). \$\endgroup\$
    – Roy T.
    Nov 5, 2012 at 11:36
  • \$\begingroup\$ @RoyT. Yes, I agree with you. I have edited my answer. Thanks for comment. :) \$\endgroup\$ Nov 5, 2012 at 11:42
  • \$\begingroup\$ opengl.org does more harm than good, i'd avoide it like the plague unless somebody wants the pure specification, it's not good for anything else \$\endgroup\$
    – dreta
    Nov 6, 2012 at 4:59
  • \$\begingroup\$ @dreta, What would be better in lieu of opengl.org? \$\endgroup\$ Nov 6, 2012 at 5:07
  • \$\begingroup\$ @MahbuburRAaman null and void \$\endgroup\$
    – dreta
    Nov 6, 2012 at 20:06

There is a free book, released this year, called "Learning Modern 3D Graphics Programming" which I saw John Carmack (from ID/DOOM fame) recommend. You can browse it here https://learnopengl.com/arcsynthesis.pdf I've been going through it myself to learn more about the 'proper' way to do things in OpenGL. Now I realize this is in C, not C++. But since OpenGL is mostly a C API its best to learn it this way and then later encapsulate it in objects later if you want to and of course all the C code works perfectly fine in C++.

As for other tutorials and books. There are a lot of old ones out there which learn you a lot of bad practices (that used to be good practices). Shun away from anything that is using the fixed pipeline functions like glVertex, glColor, the matrix stack, the gluPerspective and gluLookAT functions. These are all depricated and outdated. Try to write as clean as possible OpenGL 3.

  • \$\begingroup\$ Happen to remember where you saw John Carmack recommending that book? \$\endgroup\$
    – House
    Jul 19, 2013 at 20:58
  • \$\begingroup\$ He said something like "A very decent looking book on modern OpenGL" on twitter. Must've been not more than a month before I answered this question. \$\endgroup\$
    – Roy T.
    Jul 22, 2013 at 9:15
  • \$\begingroup\$ Link is not working anymore. Is it this book: learnopengl.com/arcsynthesis.pdf ? \$\endgroup\$
    – antibus
    May 7, 2018 at 16:33
  • \$\begingroup\$ @antibus thanks, that's the one. I've updated the URL. \$\endgroup\$
    – Roy T.
    May 31, 2018 at 13:18

Not the answer you're looking for? Browse other questions tagged .