Re: GSet & GState Manipulation

New Message Reply Date view Thread view Subject view Author view

Fischler (src++at++rose)
Mon, 13 Mar 1995 12:41:50 -0800


+>---- On Mar 11, 7:13pm, Rejean Chartrand wrote:
> Subject: GSet & GState Manipulation
->
->I would like to know how to manipulate (modify) the content of a vertex list
->passed to a GSet without having to delete the GSet and create a new one and
->also how to modify a GState without having to create a new one.

GSets and GStates can always be modified. GSets keep pointers
to your vertex data so your vertices can be modified in memory
and the changes reflected immediately when you draw.
Note, however, that these structures are not automatically
multi-buffered for you across processes. You want to
1) create them in shared memory so that all process can see them
2) create 3 copies: 1 for the process where you are changing the data (app)
        1 for the draw process drawing, and 1 more to hold the last result
        from the app and to keep you from colliding and having the app wait
        on the draw to finish with its copy.
3) Only call Draw and Apply routines in the draw process.

->One last question, where should I change the content of a pfSwitchVal so that
->the draw process shows the effect ?

Make changes to all pfNode types in the Application. These structures
we do automatically multibuffer for you and the change will happen
on a frame accurate basis.

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:04 PDT

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