Sign in to follow this  
Braeden

OpenGL Getting started with opengl

Recommended Posts

Hi guys. I want to start doing some game programming as I've been doing c++ for quite a while now and I have a lot of spare time. So my question is, what do I need to do to start using OpenGL? I've tried a few times but it never seems to be able to do anything. I'm using dev c++ 4.9.2 as my compliler. Thanks in advance

Share this post


Link to post
Share on other sites
There are a lot of tutorials "out there". Many of them are targeting legacy OpenGL (using [url="http://www.opengl.org/wiki/Fixed_Function_Pipeline"]fixed functions[/url]), which is kind of a dead end. So make sure you understand the difference before using one.

I would recommend [url="http://www.arcsynthesis.org/gltut/"]Learning Modern 3D Graphics Programming[/url]. It is 50% about general 3D graphics and 50% about how to do this in the current OpenGL API.

Share this post


Link to post
Share on other sites
The site to bookmark is [url="http://www.opengl.org/registry/"]OpenGL Registry[/url]. What I did when I ported my renderer over to OpenGL from D3D was that I read through the spec to get a hang of what functionality is there, and to get a grasp of which functions to use to achieve my task at hand, and then googled using those function names for examples and sample code where necessary.

I recommend keeping away from anything that is older than OpenGL 3.0, and adopting the 3.2 Core Profile as the primary development target. That version does not contain any of the old deprecated functionality, and you'll have a better chance to stay on the 'fast path' of the API. Also, using a more recent version of OpenGL means that you'll need to query fewer things as extensions, which is a dull and messy obstacle when starting out and learning.

There are several third-party OpenGL helpers available which fix parts of the tediousness related to OpenGL extension querying, and context and window creation, e.g. GLEW, GLFW, GLUT, GLEE, SDL, .. It is worthwhile to check those out, and some samples that utilize them, since doing those from scratch can mean a ton of extra code, which has nothing to do with learning how GPUs work.

Share this post


Link to post
Share on other sites
Hi Braeden,
I'd recommend taking a look at the [url="http://www.opengl.org/wiki/Getting_started"]Getting Started[/url] section of the [url="http://www.opengl.org/wiki/Main_Page"]OpenGL Wiki[/url]. There's a lot of good info and links to tutorials for both modern and fixed-function OpenGL programming.

Good luck!

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