private void StoreCallbacks()
 {
     _errorCallback              = OnGlfwError;
     _charCallback               = OnGlfwChar;
     _cursorPosCallback          = OnGlfwCursorPos;
     _keyCallback                = OnGlfwKey;
     _mouseButtonCallback        = OnGlfwMouseButton;
     _scrollCallback             = OnGlfwScroll;
     _windowCloseCallback        = OnGlfwWindowClose;
     _windowSizeCallback         = OnGlfwWindowSize;
     _windowContentScaleCallback = OnGlfwWindownContentScale;
 }
Esempio n. 2
0
 /// <inheritdoc />
 public abstract unsafe GLFWCallbacks.WindowCloseCallback SetWindowCloseCallback(Window *window, GLFWCallbacks.WindowCloseCallback callback);
Esempio n. 3
0
 public static extern IntPtr glfwSetWindowCloseCallback(Window *window, GLFWCallbacks.WindowCloseCallback callback);