LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2003, 09:33 AM   #1
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Rep: Reputation: 15
basic steps for opengl programming


Hello!

There is no info on internet!! I didn't find anything:

How can I find a tutorial for learning how to start an opengl program with linux, C++?

thanks!!!
 
Old 06-22-2003, 10:01 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
nehe.gamedev.net, although his code is for windows there are linux/sdl linux/glx and glut ports that will be of use and all the actual opengl stuff is the same
 
Old 06-22-2003, 10:36 AM   #3
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
thanks!

thanks!

anyway, i knew that page. the problem is that I'm not able to understand the difference between this terms:

sld,glx, glu, glut, opengl, mesa

I don't know what I'm using!!!

thanks for your time!!!!!!


.alvaro.castro.
 
Old 06-22-2003, 11:24 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
the opengl api does not provide any windowing or input functions. it relies on functions in the operating system to create a window, set it up and handle input. so there are different api's for this 'house keeping' code. eg the windows platform supplies the wgl functions, the equivelent on X is the glx functions. but these are not easy for the beginner trying to concentrate on the concepts of 3d programming. sdl is an api to handle this sort of thing and comes with both windows & linux versions but ive never got it to work quite right. glut is a simple api that lets you get on with opengl without worrying about windowing and such but doesnt provide a great deal of flexibility.

glu is a library that is built on top of opengl to allow the easy drawing of quadrics and setting up of various matrices. mesa is a software implementation of the opengl api for ppl who dont have supported graphics cards.

so you need to choose an api to use with opengl that will take care of the basic stuff you need to do. for the beginner i suggest glut as it lets you concentrate on the 3d side of stuff while your learning. but by all means try sdl, most people say its great but i cant get it to handle events properly. i wouldnt bother with glx because it will just overcomplicate things while your learning.

if you google for glut tutorial im sure you'll find something about how to set it up, then you can read the nehe tutorials.

Last edited by kev82; 06-22-2003 at 11:30 AM.
 
Old 06-23-2003, 05:03 PM   #5
noir-gel
Member
 
Registered: Dec 2002
Posts: 51

Original Poster
Rep: Reputation: 15
tHANKS

thanks for the explanation!!

.alvaro.castro.
 
Old 06-24-2003, 09:25 AM   #6
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Lightbulb Three helpful books for download

The "Red" book, a how to use Opengl book. Not bad at all.

The "Blue" book, details Opengl functions and data structures. Includes Openglu, "graphics library utilities". Really, this is the book.

Both of these can be found as online downloads in a number of formats, but if you want the latest editions, you'll need to buy them. I believe the downloadable versions are for Opengl 1.1 and current Opengl version is 1.3, unless 1.4 has been released. Ha ! A likely scenario. Both of these books have real names too. I'll leave those out though, to create suspense. They are always called the "Red" and "Blue" books so you won't need to know the real names.

I recommend using SDL. The documentation is good, the api is easy to use ... event handling always works for me *shrug* no dramas.

The book "Programming Linux Games" is also a damn good read, written by ex-Loki developers, big on SDL. It is availible for download free as well, if you need it. The official SDL documentation is extremely good too. SDL forums are thin, but I've rarely had need to post problems.

I've had pleasing results using SDL, Opengl (glu - don't need really, but some functions handy) and Openal (for sound).

So anyway, google up those books and download them, then look into SDL if you want to.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic steps for upgrading from 9.1 - 10.0? varese SUSE / openSUSE 3 11-20-2005 07:25 PM
Basic Sound troubleshooting steps? penguinlnx Linux - Software 3 03-16-2005 12:49 AM
OpenGL programming koyi Programming 10 04-22-2004 07:28 PM
OpenGL programming help TheGr81 Linux - General 1 10-02-2003 03:55 PM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration