PDA

View Full Version : OpenGL tutorial for linux



Pagh
November 11th, 2008, 10:49 PM
Hi

Over the last couples of days i have struggled to find an opengl tutorial made for Linux - the only problem is that I have only been able to find tutorials for ms visual c++ and stuff like that. I have had no luck in finding a tutorial that just provides basic information like what commands to use to compile the scripts an stuff like that.

I have searched Wybiral post in the following thread: http://ubuntuforums.org/showthread.php?t=333867#8
But without any luck in finding a tutorial directly made for linux users.

Hope there is some one out there that is able to help.

signal_
November 11th, 2008, 11:17 PM
Hi. I use SDL with openGL on both windows and ubuntu. So I can tell you how to get it working under ubuntu and what tutorials you can use.

I use SDL with OpenGL and my IDE is Code::Blocks using C++ as the language. So if you want to try that it works. Just be sure to link SDL and OpenGL when you build the program in Code::Blocks IDE.

You can then go to http://nehe.gamedev.net/ for tutorials. You can download source that is set up for SDL with OpenGL to follow along in the tutorials. Some caution that the tutorials are out of date, but they also say that they're still pretty good for learning.

Moreover, SDL with OpenGL works on Windows as well. So you can build your application on Windows too so that your Windows using friends can use your program as well. I have experienced different performances on Ubuntu vs. Windows, but I am working on that and it usually only shows when I tax the system.

This is just a suggestion. Maybe there are tutorials and solutions out there that will fit you better, but this is one possible way. In any case good luck!

Envergure
November 12th, 2008, 02:36 AM
See if you can find a PDF tutorial called "Programming Linux Games" or something like that. It has good instructions for using SDL to get OpenGL up and running. For OpenGL itself there's the old OpenGL Redbook (the new one's $50 or something, but the old one's free and works just fine).

abdullahValter
November 12th, 2008, 02:45 AM
Here's a video about basic installation:

http://www.videotutorialsrock.com/opengl_tutorial/get_opengl_setup_linux/video.php

V