Exemplo n.º 1
0
        public void Show(string filename)
        {
            collada = COLLADA.Load(filename);

            Glut.glutInit();
            Glut.glutInitDisplayMode(Glut.GLUT_DOUBLE | Glut.GLUT_RGB | Glut.GLUT_DEPTH);
            Glut.glutInitWindowSize(600, 450);
            Glut.glutInitWindowPosition(100, 100);
            Glut.glutCreateWindow("Collada Viewer");
            Init();
            Glut.glutDisplayFunc(new Glut.DisplayCallback(Display));
            Glut.glutIdleFunc(new Glut.IdleCallback(Idle));
            Glut.glutKeyboardFunc(new Glut.KeyboardCallback(Keyboard));
            Glut.glutReshapeFunc(new Glut.ReshapeCallback(Reshape));
            Glut.glutMotionFunc(Motion);
            Glut.glutMouseFunc(Mouse);
            Glut.glutMouseWheelFunc(MouseWheel);
            Glut.glutMainLoop();
        }
Exemplo n.º 2
0
 public InstanceMaterial()
 {
     collada = COLLADA.LastCreatedCollada;
 }