Re: How to printf a data in node predraw callback, which is set in channel draw callback

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/19/2001 13:21:55


You need to use printf like you usually would and cast the data back to
the type it was allocated and used as.

Changhee Han wrote:
>
> Thank you for kind helps for my previous stupid questions.
>
> I'd like to know how to printf a data in node predraw callback.
> The data is set in channel draw callback.
>
> void
> my_draw_callback(pfChannel* pfchan, void* _userData) {
> .....
> mode = 2;
> pfDraw();
> .....
> }
>
> void
> color_texture_nodepre_callback(pfTraverser* _trav, void* _userData){
> printf(...); //mode = 2
> }
>
> Thanks in advance,
> changhee
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jun 19 2001 - 13:23:51 PDT

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