/* The following C++ code will run on
a CAVE, ImmersaDesk, HMD,
* desktop
and laptop, with your choice of navigation and other
* interaction methods, I/O devices and/or emulators
* (user,
DIVERSE, Performer):
*/
#include < dgiPf.h
>
int
main(void) {
pfInit();
dgiPf app;
pfConfig();
app.display()->world()->addChild(pfdLoadFile("model.pfb"));
while(app.state
& DGIPF_ISRUNNING)
pfFrame();
pfExit();
return 0;
}
|