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
try to look in GLX section of Mesa demos. http://www.mesa3d.org
“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/
Thank you.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.