PDA

View Full Version : How do I get started?



anonymous948672
05-28-2009, 09:46 AM
Here is my background:

I've taken a few C++ and Java related classes in college and understand programming in C++ quite well. Now with that being said... Also note that I've tried setting up OpenGL many times before with failures all the times.

For OpenGL to work properly I need to have a Frame correct?
I prefer to make anything platform independent so which IDE should I use?
Would using GTK+ suffice?

_NK47
05-28-2009, 10:00 AM
1st - OpenGL doesnt define where to render, its up to you. Common way is a window on your OS of course.
2nd - Any you want. Even Notepad is alright but lacks syntax highlighting.
3rd - GTK is cross platform and should do it.

anonymous948672
05-28-2009, 10:04 AM
Alright thanks :)

What are the must have includes? I tried nehe tutorials and they always fail to compile. I have added the files into VS08 to be included and still they fail to compile. Basically which includes are a must have for 3D acceleration and for you to use OpenGL properly?

ZbuffeR
05-29-2009, 02:20 AM
GL/gl.h


then optionally :
GL/glu.h
GL/glut.h or GL/glfw.h or SDL.h or the windows' .h
GL/glew.h
GL/glext.h

"fail to compile" is very vague.
What messages do you get ?

From NeHe, avoid the projects depending on outdated glaux.h, otherwise it should work.

Look at the very bottom of the page, try various ported versions of the lesson 01, ie. SDL or game glut etc :
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01