Re: More on simpleviewer

New Message Reply Date view Thread view Subject view Author view

Fischler (src++at++rose)
Fri, 17 Mar 1995 00:01:50 -0800


-- 

+>---- On Mar 16, 7:10pm, Lance R. Marrou wrote: > Subject: Re: More on simpleviewer ->On Thu, 16 Mar 1995 abrend++at++idt.unit.no wrote: -> ->> 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.

Actually, the call to pfuGetMouse() should be in the application as well - which is where you need the info to set the new viewpoint. pfuGetMouse() only copies internal data to the user's data structure.

The only pfu input handling call that goes in the draw is the call to pfuCollectInput() and that should go after the call to pfDraw() is only needed for IRIS GL input handling.

src.

-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++ Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev. src++at++sgi.com (415) 390 - 1002 FAX: (415) 965 - 2658 MS 8U-590 -----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:05 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.