Jim Helman (jimh++at++surreal)
Sat, 04 Feb 95 20:45:21 -0800
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:56 PDT