Re: XForms: XForms, C++ and OpenGL

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 22 Feb 99 06:40:13 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> ... There is a function
> called idle_cb, is it a necessary function to draw something?. I tried to
> put this function as a method of a class but I'd like avoid this function,
> or change its name, but I wasn't able to do that. ...

I'm not a C++ programmer so I can't give you much advice in that realm
but I can tell you that the idle_cb() function is not absolutely
necessary to OpenGL programming. You'd only use an idle callback if
you wanted some continuous animation -- for instance a rotating cube,
as in the example. If you are simply responding to user input, you'd
just put your OpenGL calls in your standard object callbacks.

If you don't already have it you may want to find a copy of Mark
Kilgard's wonderful reference _OpenGL Programming for the X Window
System_ (ISBN 0-201-48359-9). While it doesn't speak directly to
either XForms or to C++ it is a valuable reference for the OpenGL
programmer in the X environment.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/