Aaron Hightower (aaron++at++qbert.rts.dseg.ti.com)
Sun, 28 Aug 1994 20:58:58 -0500 (CDT)
Trying to poke into Performer's data structures is dangerous. The main reason
being that using such "undocumented features," if they exist, is no guarantee
that they will continue to exist in new versions. I would not suggest
dereferencing any of the Performer objects directly.
> for instance, the pointer points to an integer that's used as a table index
> into a libpr or libpf internal table.)
There are two ways of handling this that I know of. The first way is simply
to use pfUserData() on the pfChannel pointer and then make a structure
that identifies the channel in whatever way you would like.
The second way is to use pfAllocChanData() and pfPassChanData(). This is
the way to do it if you want your data to be "frame accurate" as it keeps
a copy for each of the app cull and draw. However, the data is only sent
downstream. If you need to change things in the draw process and see it
in the app, then pfUserData is your key.
Hope this helps,
Aaron Hightower
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:31 PDT