Jump to content
  • Advertisement
Sign in to follow this  
Braeden

OpenGL Getting started with opengl

This topic is 2260 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
The first thing you need is to read this: http://www.jasonbadams.net/20081218/why-you-shouldnt-use-dev-c/

Share this post


Link to post
Share on other sites
The site to bookmark is OpenGL Registry. 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!