PDA

View Full Version : Getting started with opengl glu glut mesa



<<joe>>
May 16th, 2008, 06:39 AM
So i have programed in C++ before. I under stand it, but only for terminal stuff. So i would like to make a 3d game for Linux. But i am kind of lost at this point. So i was like i will make a 2d game first useing opengl to get used to it.

So i googled "opengl c++ how to" could only really find them for windows
i am sure most of the stuff in there works on linux well but how do i setup my build environment.
(really i googled a lot i think i am googling the rong thing)

I have a desist grasp on C++,but maybe not the object-oriented part, but I'm working on it. I have no idea how a make file works. Lot of reading to do.

I gess i am just looking for good tutoral to get me going
or something. so if somebody could point me in a good direction.


edit: think i found a tutorial for linux not as hard as it seemed
http://intranet.cs.man.ac.uk/software/OpenGL/ anyone like this one or have a better one

AngryBash
May 16th, 2008, 12:36 PM
nehe.gamedev.net

<<joe>>
May 16th, 2008, 04:49 PM
ooooo what about SDL is it better then glut?

Senesence
May 16th, 2008, 04:58 PM
ooooo what about SDL is it better then glut?

I would recommend SDL. It provides the developer (you, in this case) with all the functionality needed to make a game (keyboard detection, mouse tracking, sound output etc). The best part -> it's cross platform, so you should be able to write your code once, and have it work on all 3 major platforms (Linux, Mac, Windows) with nothing more than a recompile.

A good starter tutorial can be found here:
http://lazyfoo.net/SDL_tutorials/lesson36/index.php