On Monday 15 July 2002 14:00, Jesse Marlin wrote:
ISBN: 0201483599
Thanks I'll check out this book.
When programming in X you have to develop an Event model. A way to handle X events. Usually this is an infinite while loop that only exits when the program exits. Windows has a similar model. What glut tries to do is using the native windowing calls (WGL or GLX) it tries to provide an event model that will work on either X or Windows. You may not give a hoot about Windows but glut greatly simplifies programming in X with OpenGL. But if you need to do something that glut does not provide then you have no choice but to use the GLX calls.
Sounds as if all I'll need, at least for the time being, is glut.
It almost looks like there is no gl.h. Do you have gl.h, glu.h, and glut.h? Did you copy everything from NVIDIA_GLX-1.0-????/usr/include/GL/ to /usr/include/GL? If you have mesa installed then that should be sufficient to use. The NVidia headers will probably be more up to date with their
I opened the rpm in KPackage and gl.h, glx.h and glxtokens.h were shown as being place din usr/share/docs/packages/nv_glx/usr/include/GL these were the only files in that directory and I copied them all. So far it seems that mesa works fine as the demo programs from the OpenGL Programming Guide work as they should.
latest extensions. Here is a list of all the files I have:
ls /usr/include/GL
gl.h gle.h glu.h glut.h glx.h glxtokens.h
I have all these files in my /usr/include/GL Stewart