コード例 #1
0
 public ExampleWindow()
     : base(GameWindowSettings.Default, new NativeWindowSettings() { Size = new Vector2i(800, 600), Title = "" })
 {
     // disable vsync
     VSync = VSyncMode.Off;
     // set up camera
     Camera = new Camera();
     Camera.SetBehavior(new ThirdPersonBehavior(this));
     Camera.DefaultState.Position.Z = 5;
     Camera.ResetToDefault();
     Camera.Enable(this);
     ResetMatrices();
     // hook up events
 }
コード例 #2
0
ファイル: ExampleWindow.cs プロジェクト: lfricken/ObjectTK
 public ExampleWindow()
     : base(800, 600, GraphicsMode.Default, "")
 {
     // disable vsync
     VSync = VSyncMode.Off;
     // set up camera
     Camera = new Camera();
     Camera.SetBehavior(new ThirdPersonBehavior());
     Camera.DefaultState.Position.Z = 5;
     Camera.ResetToDefault();
     Camera.Enable(this);
     ResetMatrices();
     // hook up events
     Load        += OnLoad;
     Unload      += OnUnload;
     KeyDown     += OnKeyDown;
     RenderFrame += OnRenderFrame;
 }