public VEngineWindowAdapter(string title, int width, int height)
            : base(title, width, height)
        {
            var settings = new GraphicsSettings();
            new SettingsWindow(settings).Show();

            /*GL.DebugMessageCallback((source, type, id, severity, length, message, userParam) =>
            {
                Console.WriteLine("{0} {1} {2} {3} {4} {5}", source, type, id, severity, length, message);
            }, (IntPtr)0);*/
            MouseMove += Mouse_Move;
            KeyPress += VEngineWindowAdapter_KeyPress;
            KeyDown += VEngineWindowAdapter_KeyDown;
            KeyUp += VEngineWindowAdapter_KeyUp;
            MouseDown += VEngineWindowAdapter_MouseDown;
            MouseUp += VEngineWindowAdapter_MouseUp;
            MouseWheel += VEngineWindowAdapter_MouseWheel;
            Load += VEngineWindowAdapter_Load;
            CursorVisible = false;
        }
Exemple #2
0
 public SettingsWindow(GraphicsSettings settings)
 {
     InitializeComponent();
     propertyGrid1.SelectedObject = settings;
     propertyGrid1.PropertyValueChanged += propertyGrid1_PropertyValueChanged;
 }