Jump to content
  • Advertisement
Sign in to follow this  
dimensionX

OpenGL OpenGL on Linux

This topic is 5055 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
>>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

Share this post


Link to post
Share on other sites
You can stream video with opengl, (involves some kind of trickery with I think pbuffers or something), otherwise you'll use Xv.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!