PDA

View Full Version : openGL as a library, not glutMainLoop callbacks possible?



08-02-2000, 10:00 AM
newbie here. wish to use openGL services on
my sparc station, using Solaris, as a
conventional library "*.a" set of service
subroutines, rather than registering my
application software as a callback function.
since my application is Ada tasking mapped
onto solaris threads, the runtime system
requires control of the program counter.
TIA - cdavis

Bob
08-03-2000, 05:18 AM
I'm no UNIX guru, but anyways...

Have a look at the online version of the Red Book (http://heron.cc.ukans.edu/ebt-bin/nph-dweb/dynaweb/SGI_Developer/OpenGL_PG/@Generic__BookView) , and look at appendix C. There are some X-specific functions for setting up a proper window for OpenGL rendering. I also recomend you buy a book. A good one is OpenGL Programming for the X Window System ($45 @ Amazon.com (http://www.amazon.com) ). I assume it's using native X-functions to setup a window for rendering, and not GLUT, but please check this out before you buy it http://www.opengl.org/discussion_boards/ubb/tongue.gif