Re: XForms: Mineo Morohashi: OpenGL and xforms

Matthew Flax (flatmax@cse.unsw.EDU.AU)
Fri, 10 Oct 1997 13:19:02 +1000 (EST)

To subscribers of the xforms list from Matthew Flax <flatmax@cse.unsw.EDU.AU> :

Where is a good place to find out about GLUT ?
Matt

On Thu, 9 Oct 1997, Lothar Esser wrote:

> To subscribers of the xforms list from Lothar Esser <esser@chop.swmed.edu> :
>
> On Fri, 10 Oct 1997, Mineo Morohashi wrote:
>
> > To subscribers of the xforms list from Mineo Morohashi <moro@aa.cs.keio.ac.jp> :
>
> > In addition to use OpenGL library, I use
> > glut.
> > However, each library need to comprise main event loop, such as
> > fl_do_forms(void), and glutMainLoop(). If I want to use both, how can
> > I handle both of them in same program?
> >
>
> Dear Mineo Morohashi,
>
> I also use glut and xforms and had the problem with two event loops.
> A good solution is to use the glutMainLoop() in the main() program
> and add a callback to the idle function of glut :
>
> glutIdleFunc(Xforms_cb);
>
> where Xforms_cb is :
>
> void Xforms_cb(void) {
> fl_check_forms();
> }
>
> So when ever OpenGL (or glut) has nothing to do it checks the forms.
> This however uses up some cpu time ( about ~1% or less) on my SGI
> R10000.
> I cannot claim that I had this idea so let me thank Anneke
> Sicherer-Roetman who has made excellent contributions to "Xform based
> applications" which you can find on the xforms web page.
> (http://bragg.phys.uwm.edu/~zhao/new/app.html)
>
> Hope this helps.
>
> Lothar Esser
>
>
>
> __________________________________________________________________________
> Dr. Lothar Esser
> Howard Hughes Medical Institute
> 5323 Harry Hines Blvd.
> Dallas Texas 75235-9050
>
> E-mail : esser@chop.swmed.edu
>
>
>
>
>
>
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuf2.usuhs.mil or see
> http://bob.usuf2.usuhs.mil/mailserv/xforms.html
> Xforms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/
>

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