public override void Init() { Initialise(); WindowHandle = CreateWindow(Width, Height, Title, IntPtr.Zero, IntPtr.Zero); Context = new OpenGLContext(ref WindowHandle); Context.Init(); SetWindowSizeCallback(WindowHandle, onWindowRezise); SetWindowCloseCallback(WindowHandle, onWindowClosed); SetKeyCallback(WindowHandle, onkeyDown); SetMouseButtonCallback(WindowHandle, onMouseButton); SetScrollCallback(WindowHandle, onMouseScroll); SetCursorPosCallback(WindowHandle, onMouseMove); Game.EventManager.RegisterListener <CloseWindowEvent>(Shutdown); }