Re: Channel and Draw Callbacks

New Message Reply Date view Thread view Subject view Author view

Sylvain Mayer (mayer++at++cae.ca)
Tue, 22 Jun 1999 16:26:54 -0400


Kevin Kronmiller wrote:

> Hi,
>
> Now to my question.
>
> I need the text identifying each pfNode to be different depending on which pfChan the scene is viewed from. I know how to pass use pass through data but don't know how to tell a pfNode which pfChan it is viewed from. How can I do this?

If you write in C++, I suggest you derive your own channel class from pfChannel and implement whatever function call in your new class to identify a channel (eg. a name or an Id).

Another simple approach would be to put this information (name or Id) into the user data for each channel. You can then verify which channel you're rendering to at run-time by getting back the channel's user data.

Sylvain

--
Sylvain Mayer, 3D Graphics Developer
Graphics Simulation Technology
Display Eng. & Special Projects
CAE Electronics Ltd. (http://www.cae.ca)
mailto:mayer++at++cae.ca
Tel: (514) 341-6780    Ext: 3065
Fax: (514) 734-5618

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Jun 22 1999 - 13:28:12 PDT

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