예제 #1
0
		/// <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;
		}
예제 #2
0
		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 );
		}