/// <summary> /// Creates a new Scene /// </summary> public Scene() { // Singleton support if(Scene._constructed) { throw new SceneAlreadyExistsException(); } _camera = new Camera( Engine.TV3DScene.GetCamera() ); Scene._constructed = true; }
public Viewport( System.Windows.Forms.IWin32Window window, string name ) { viewport = Engine.TV3DEngine.CreateViewport( window.Handle.ToInt32(), name ); viewport.SetAutoResize( true ); camera = viewport.GetCamera(); strivecamera = new Camera( camera ); }