Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Thu, 16 Mar 1995 19:10:28 -0500 (EST)
> I got the input GL input devices to function with draw callback.
> Another problem is : where should I put the code that reads the mouse
> and moves the model in the viewer:
>
> /* Moves viewpoint accordingly to the mousecoordinates */
> if ((pfuMapMouseToChan(&viewState->mouse, viewState->masterChan))
> && (viewState->mouseMove))
> moveWithMouse();
You should put this call in the app process, unless the function moveWithMouse
has some draw-specific calls within it. This way, it takes just that much more
load off the draw process. The call to pfuGetMouse should be done in the
draw callback.
______________________________________________________________________________
/\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:05 PDT