Example #1
0
 public Avatar(GlControl ViewPort, GlObject World)
 {
     camera        = new Camera(origin, center, up);
     this.World    = World;
     this.ViewPort = ViewPort;
     Glut.glutKeyboardFunc(new Glut.KeyboardCallback(keymove));
     Glut.glutSpecialFunc(new Glut.SpecialCallback(specialKeyMove));
     Glut.glutSpecialUpFunc(new Glut.SpecialUpCallback(specialKeyUp));
     Glut.glutMouseFunc(new Glut.MouseCallback(this.MouseFunc));
 }
Example #2
0
 public TranslatedObject(Point3D origin, GlObject obj)
 {
     this.origin = origin; this.obj = obj;
 }
Example #3
0
 public void Add(GlObject obj)
 {
     objects.Add(obj);
     obj.Split(far, near);
 }