Jump to content

  • Log In with Google      Sign In   
  • Create Account

Getting started with opengl


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Braeden   Members   -  Reputation: 110

Like
0Likes
Like

Posted 06 June 2012 - 09:53 PM

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

Sponsor:

#2 larspensjo   Members   -  Reputation: 1538

Like
1Likes
Like

Posted 07 June 2012 - 01:47 AM

There are a lot of tutorials "out there". Many of them are targeting legacy OpenGL (using fixed functions), which is kind of a dead end. So make sure you understand the difference before using one.

I would recommend Learning Modern 3D Graphics Programming. It is 50% about general 3D graphics and 50% about how to do this in the current OpenGL API.
Current project: Ephenation.
Sharing OpenGL experiences: http://ephenationopengl.blogspot.com/

#3 mhagain   Crossbones+   -  Reputation: 7955

Like
0Likes
Like

Posted 07 June 2012 - 03:41 AM

The first thing you need is to read this: http://www.jasonbadams.net/20081218/why-you-shouldnt-use-dev-c/

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#4 Konrad Jablonski   Members   -  Reputation: 483

Like
0Likes
Like

Posted 12 June 2012 - 09:49 AM

thats has good tutorial on OpenGL:
http://www.videotutorialsrock.com/

#5 clb   Members   -  Reputation: 1781

Like
1Likes
Like

Posted 12 June 2012 - 10:09 AM

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.
Me+PC=clb.demon.fi | C++ Math and Geometry library: MathGeoLib, test it live! | C++ Game Networking: kNet | 2D Bin Packing: RectangleBinPack | Use gcc/clang/emcc from VS: vs-tool | Resume+Portfolio | gfxapi, test it live!

#6 KhronosGroup   Members   -  Reputation: 103

Like
0Likes
Like

Posted 12 June 2012 - 10:14 AM

Hi Braeden,
I'd recommend taking a look at the Getting Started section of the OpenGL Wiki. There's a lot of good info and links to tutorials for both modern and fixed-function OpenGL programming.

Good luck!

#7 Waterlimon   Crossbones+   -  Reputation: 2560

Like
0Likes
Like

Posted 12 June 2012 - 10:17 AM

And you might want to use a different IDE, i think dev c++ is an old ide nobody likes.

o3o





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS