OpenGL on Linux

Started by
7 comments, last by Mayrel 19 years, 4 months ago
Hi! I've been programming in OpenGL for quite sometime now. I had used GLUT & SDL on IRIX & Windows. I want to know what are the specific things that need to be done for OpenGL on Linux but without using GLUT or SDL. For example we can use Win32API on Windows and setup the device and rendering contexts. Similarly how to do it on Linux. Also are there any OpenGL specific things that are peculiar to Linux ? Any pointers, tutorial websites would be very helpful. Also any references to Linux operating system and architecture would be very helpful. Thanks you!
Advertisement
A quick search turned up a page on MSDN with an sample OpenGL application using X, which is the standard graphical interface on Unix-like OSs.

Enigma
The Nehe tutorials usually have linux downloads at the bottom. These use X and OpenGL.
I don't see why you don't want to use SDL.

It really is a zillion times easier than GlX (well, a bit easier anyway). And it has the advantage that it also knows how to set up rendering contexts in win32 (and maybe others).

Essentially, replacing the more complicated GLX / win32 context-creation code with the simpler and less platform-dependent code of SDL, you will gain productivity.

GLUT is fine for hello-world style programs, but does not have adequate flexibility / input handling for real-world programs.

Also I don't trust any library which contains a function to draw a teapot.

Mark
If it is a commercial application with GUI + OpenGL + Realtime video what would I use SDL ? I want to know the graphics device interface on Linux and a proper GUI into which I can read the realtime video and render it along with my 3D graphics. I guess I have to go into the gory details of X Window system. Any pointers regarding, Reading reatime video, Linux device interfaces, X Window system, would be very helpful. Thank you!
>>If it is a commercial application with GUI + OpenGL + Realtime video what would I use SDL ?<<

u can do commercial applications with sdl eg UT2004 for linux uses it
if you need a full fledged GUI with your SDL application, use ParaGUI.

http://www.paragui.org/
=========================Buildium. Codium. Fragium.http://www.aklabs.net/=========================
You can stream video with opengl, (involves some kind of trickery with I think pbuffers or something), otherwise you'll use Xv.
http://www.paragui.org/
CoV

This topic is closed to new replies.

Advertisement