View Full Version : OpenGL under Linux
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.
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/
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.