A SERVICE OF

logo

196
Appendix B: Cosmo 3D Sample Application
//Start the application here
int
main(int argc, char *argv[])
{
int doOrthoCam = 0, doFullScreen = 0;
if(argc > 1)
{
argv++;
argc--;
while(argc > 0)
{
if(argv[0][0] == '-')
switch(argv[0][1])
{
case 'f':
doFlash = 1;
break;
case 'F':
doFullScreen = 1;
doBorders = 0;
break;
case 'o':
doOrthoCam = 1;
break;
}
argv++;
argc--;
}
}
// Initialize Cosmo3D
csObject::initClasses();
// define scene
root = makeCube();