PDA

View Full Version : How do I program OpenGL under Linux



Furrage
01-21-2002, 01:13 PM
I have Mandrake Linux 7.2, I know some C/C++ and OpenGL but I have no clue where to start where linux is concerned. Can anyone recommend some good tutorials on the web?

arnott
01-21-2002, 02:16 PM
for opengl tutorials : http://nehe.gamedev.net/

for Mesa(opengl for linux) : http://www.mesa3d.org/

Furrage
01-21-2002, 05:18 PM
Okay, maybe I should be asking if there is a development environement like VC++ 6.0 under Linux. If there is, what's it's name, where do I get it and how do I use it? If not how do I use gcc/g++, and how do I use it with OpenGL? I have no experience with using a command line compiler.

I checked out NeHe but they only had something for Solaris. Can it be used for Linux as well?

01-21-2002, 08:51 PM
I think that the two most popular IDEs is kdevelop and anjuta. You should already have kdevelop if you are using KDE and anjuta can you find on anjuta.org or similar. The traditional way of developing under Unix/Linux is by using vi (vim) or emacs and makefiles. This is very flexible and many command line tools are available.

Tolga Dalman
01-21-2002, 09:09 PM
... and if you think kdevelop is far too fat (like me ;-), then you should use "kate" and kde. it's quite small, but very comfortable too.
of course it's not as powerful as (x)emacs, but nice anyways...

jackz
01-22-2002, 01:33 AM
Originally posted by Furrage:
Okay, maybe I should be asking if there is a development environement like VC++ 6.0 under Linux. If there is, what's it's name, where do I get it and how do I use it? If not how do I use gcc/g++, and how do I use it with OpenGL? I have no experience with using a command line compiler.

I checked out NeHe but they only had something for Solaris. Can it be used for Linux as well?

First try to learn how to use command line compiler, it is not hard.
Look information from net or buy Beginning Linux Programming.

If you look tutorial 2 at nehe's you find at bottom

* DOWNLOAD Linux Code For This Lesson. ( Conversion by Richard Campbell )

Get that and open it.
There is makefile and C code.

Furrage
01-22-2002, 10:41 AM
Thanks much. That was very helpful.