PDA

View Full Version : OpenGL under Linux



10-12-2003, 07:54 AM
Can i have a link or something of a simple example in which OpenGL are used under Linux? Only OpenGL, no glut or other library.... i would like to be able to open a window, change the device context (or something similar) and see a colored cube in my window...thanx

azazello
10-12-2003, 12:44 PM
try to look in GLX section of Mesa demos. http://www.mesa3d.org

FermatSpiral
10-12-2003, 02:41 PM
"or other library..." Well, you're going to need at least glx, which comes with X when OpenGL is installed, See the tutorials in nehe.gamedev.net and check the ones that say "Linux/GLX"; they're as raw as one can get using X.

10-13-2003, 05:29 AM
Originally posted by None:
Can i have a link or something of a simple example in which OpenGL are used under Linux? Only OpenGL, no glut or other library.... i would like to be able to open a window, change the device context (or something similar) and see a colored cube in my window...thanx

Under Linux, GLX is mandatory; have a look at NeHe's tutorials:
http://nehe.gamedev.net/data/lessons/linuxglx/lesson01.tar.gz

Here are also a few X11/GLX demos I wrote, complete with source code:
http://www.cr0.net:8040/code/opengl/

10-13-2003, 09:29 AM
Thank you.