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)); }
public TranslatedObject(Point3D origin, GlObject obj) { this.origin = origin; this.obj = obj; }
public void Add(GlObject obj) { objects.Add(obj); obj.Split(far, near); }