Chris Tanner (cct++at++faith)
Mon, 24 Oct 1994 11:05:32 -0700
This is a GL man page BUG!!!
tlutdef/bind works like texdef/bind, but tables do not get bound to individual
textures.
Rather tlutbind(0,id) cause the gfx hardware to use the TLUT TABLE named id as
defined by
tlutdef. Thus you can only turn on/off texture lookup tables and control the
current lookup table being used...
But just so you know, to get the GL handle for a texture,etc use
pfGetGLHandle(pfObject *obj).
To turn on a specific tlut table for a set of geometry, define all your tables
up front and
then put a DRAW callback on a node encompassing all of geometry that you want
to use a particular tlut table:
pfNodeTravFuncs(Node, PFTRAV_DRAW, preDrawTLut, postDrawTLut);
where preDrawTLut does a tlutbind to the appropriate table:
tlutbind(0,tlutID)
where postDrawTLut does a tlutbind to id 0 to turn off texture lookups
altogether
tlutbind(0,0);
Remember that if you are using a Performer MP process model(seperate processes
for application, culling, drawing -- APP_CULL_DRAW, APPCULL_DRAW, etc) which is
the default on machines with multiple CPUs, your callbacks will happen in the
draw process and not be able to share static data with the application...
That should do it...
On a side note, do customers think it useful to have state callbacks as well as
node callbacks -
if so maybe this will make into a future release...
Later,
Chris Tanner
IRIS Performer
--_____________________________________________________________ Chris Tanner (cct++at++faith.asd.sgi.com) Silicon Graphics - Advanced Graphics Division _____________________________________________________________
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:36 PDT