| |||||||||
|
|
| |||||||
|
| ||||||||
| |||||||||
#include <stdlib.h> // definition of printf #include "vg.h" // main include file for Vega #include "vgperf.h" // for the Vega Performer node functions #include "vgutil.h" #include "pf.h" // main include file for Performer #include "pfutil.h"
vgScene *scene = NULL; pfNode *sceneNode = NULL; FILE *file = NULL; int num = 0;
file = fopen("scenesDump.txt");
num = vgGetNumScene();
for( int i = 0; i < num; i++ ){
// // Print out the whole Scene to a file //
scene = vgGetScene(i);
sceneNode = vgGetScenePfScene( scene );
pfPrint( sceneNode, PFTRAV_SELF | PFTRAV_DESCEND, PFPRINT_VB_DEBUG, file ); }
fclose( file );
// // Print out the Scene to stdout (you could redirect stdout to a file) // for( int i = 0; i < num; i++ ){
scene = vgGetScene(i);
vgPrint( scene ); }
|
||
© Copyright 2004 Gordon Tomlinson All Rights Reserved. All logos, trademarks and copyrights in this site are property of their respective owner. |