I want to make 3D games on linux and I have decide to use OpenGL and C++. I know that OpenGL are only graphics library, so I will need at last sound and input libraries. What libraries can still be needed? It would be best to use cross platform libraries. For OpenGL I have found GLUT library, but it is very old. So will it support OpenGL 4?
And maybe some more info for starter?
Freeglut is open source and still maintained. Since GLUT doesn't do so terribly much it should work ok though. I can't really recommend using glut for actual game programming though - it uses characters for key input, steals your main loop away from you... And of course, it's really just OpenGL. No sound, no other misc stuff you often need in game programming - just OpenGL. It's nice for small sample programs or for practicing OpenGL because the setup is very easy and very OpenGL oriented - for quite a few game API's OpenGL is only an option, and even it always uses OpenGL getting it to create a particular context of your liking isn't always easy.
Btw: For OpenGL 4, make sure your graphics card is fairly recent (not older than 2 years). If it isn't, OpenGL 3.3 is also an option - it's forward compatible to OpenGL 4 (unless you specify backwards compatibility to older OpenGL versions).
Have you considered Qt? That is x-platform (win/lin/mac) and now under gnu LGPL.
The QGLWidget is very good and it fits into the rest of the toolkit seamlessly!
The download comes with several OpenGL examples to.
QT might be the new option here, as Qt is very good support to OpenGL as well very alive and very good with input handelling... But I am not sure how great performance it could provide for Highend gaming ? But still it is a choice now...
Yeah, NeHe has not been updated in a few years last I knew (outside the news posts) and the tutorials are still teaching an old version of OGL that has seen been changed in recent versions (functions changed, parameters dropped/added, etc).
Topic archived. No new replies allowed.
You are using a version without Ads of this website. Please, consider donating: