Archived

This topic is now archived and is closed to further replies.

jpummill

XWindows and OpenGL

Recommended Posts

jpummill    122
Hi All, I was wondering if anyone out there is doing their development on Linux/UNIX VS. Windows. I am trying to convert a small OpenGL program that I wrote in Windows (not GLUT) to run on Linux/UNIX X-Windows and I can not find any simple examples. I am not trying to become an X-Windows expert (I have to many other things I am trying to learn right now - linear algebra!!!) and I really don''t want to buy Mark Kilgrade''s book on OpenGL with XWindows at this time. I am just looking for some simple templates that that would get me started. I tried looking at Nehe''s web site where someone was nice enough to convert some of the tutorials to "Solaris" but they did it by using GLUT. I also found a couple tutorials on Nehe''s site that were written for Linux and did not use GLUT. So here are my questions: 1) Does anyone have some suggestions/simple examples of writting OpenGL apps on XWindows (Not using GLUT). 2) Does anyone know if XWindows source code for Linux would be compatable with XWindows source code on Solaris 8 (I know there are different window managers but is the underlying code to create and display a window in X the same across various UNIX platforms?) Thanks for any insight you all can provide, jpummill

Share this post


Link to post
Share on other sites
Null and Void    1088
quote:
Original post by jpummill
I was wondering if anyone out there is doing their development on Linux/UNIX VS. Windows.

I am. I''m sure others are too.

quote:
Original post by jpummill
I am trying to convert a small OpenGL program that I wrote in Windows (not GLUT) to run on Linux/UNIX X-Windows and I can not find any simple examples.

quote:
Original post by jpummill
1) Does anyone have some suggestions/simple examples of writting OpenGL apps on XWindows (Not using GLUT).

XLib is pretty cryptic. I''d advise you use something like SDL to help you out. Or, you can look at the source SDL has for setting up OpenGL in X.

quote:
Original post by jpummill
2) Does anyone know if XWindows source code for Linux would be compatable with XWindows source code on Solaris 8

It should be.

Share this post


Link to post
Share on other sites
Krysole    140
I''ve not done any GL linux coding yet but i do know of various APIs like GLX (NVIDIA), and DRI (ATI and a couple of others) As i know it u can Just use GLX and it should be compatible with the DRI cards as well but i''m not quite sure. Perhaps u might want to look up the NVidia site. The GLX Devels i THINK (i''m not too sure) are included in the linux driver package.

U could also try looking up the MESA projects web site and u can use the MESA GL emulation software to develop for hardware acceled platforms too i might add. They should have something on linux devel for beginners.

-----< KRYSOLE >-----------------------------------------------

Share this post


Link to post
Share on other sites