Re: How to receive the Vertical Retrace Interrupt.

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Sat, 04 Feb 95 20:45:21 -0800


Performer provides wrappers around certain pieces of GL graphics
state, typically those which are used and which change the most
frequently, e.g. pfTexture, pfMaterial, pfTexGen (in 2.0).

Graphics operations not supported directly by Performer's API can
be invoked with GL code in draw callbacks. The important
considerations are to only make GL calls in the DRAW process and
when using pre- and post- draw callbacks on a scene graph node to
always have the post-callback restore graphics state modified the
the pre-callback.

If a particular subgraph of the scene is to be renedered with a
particular tlut, you could bind the tlut in the pre-draw callback
of the group at the root of the subgraph and unbind the tlut in the
post-draw callback. The tlutdef, which you only want to do once at
initialization time or when the tlut's contents change, could also
be done in the node pre-draw callback.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


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:50:56 PDT

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