Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 3.3 #85

Closed
35 of 38 tasks
Mokosha opened this issue Apr 19, 2019 · 2 comments · Fixed by #87
Closed
35 of 38 tasks

Upgrade to 3.3 #85

Mokosha opened this issue Apr 19, 2019 · 2 comments · Fixed by #87

Comments

@Mokosha
Copy link
Collaborator

Mokosha commented Apr 19, 2019

GLFW-3.3 was released this Wednesday. We should upgrade our bindings to match. To do so, we must first address the lower-level bindings in bindings-GLFW. Once those are in place, we can add the relevant features here. In particular we will need to address the following from the release notes:

  • Added glfwGetError function for querying the last error code and its description
  • Added glfwUpdateGamepadMappings function for importing gamepad mappings in SDL_GameControllerDB format
  • Added glfwJoystickIsGamepad function for querying whether a joystick has a gamepad mapping
  • Added glfwGetJoystickGUID function for querying the SDL compatible GUID of a joystick
  • Added glfwGetGamepadName function for querying the name provided by the gamepad mapping
  • Added glfwGetGamepadState function, GLFW_GAMEPAD_* and GLFWgamepadstate for retrieving gamepad input state
  • Added glfwGetWindowContentScale, glfwGetMonitorContentScale and glfwSetWindowContentScaleCallback for DPI-aware rendering
  • Added glfwRequestWindowAttention function for requesting attention from the user
  • Added glfwGetMonitorWorkarea function for retrieving the monitor work area
  • Added glfwGetKeyScancode function that allows retrieving platform dependent scancodes for keys
  • Added glfwSetWindowMaximizeCallback and GLFWwindowmaximizefun for receiving window maximization events
  • Added glfwSetWindowAttrib function for changing window attributes
  • Added glfwGetJoystickHats function for querying joystick hats
  • Added glfwInitHint for setting initialization hints
  • Added glfwWindowHintString for setting string type window hints
  • Added glfwGetWindowOpacity and glfwSetWindowOpacity for controlling whole window transparency
  • Added glfwGetX11SelectionString and glfwSetX11SelectionString functions for accessing X11 primary selection
  • Added glfwRawMouseMotionSupported function for querying raw motion support
  • Added GLFW_TRANSPARENT_FRAMEBUFFER window hint and attribute for controlling per-pixel framebuffer transparency
  • Added GLFW_HOVERED window attribute for polling cursor hover state
  • Added GLFW_CENTER_CURSOR window hint for controlling cursor centering
  • Added GLFW_FOCUS_ON_SHOW window hint and attribute to control input focus on calling show window
  • Added GLFW_SCALE_TO_MONITOR window hint for automatic window resizing
  • Added GLFW_JOYSTICK_HAT_BUTTONS init hint
  • Added GLFW_RAW_MOUSE_MOTION input mode for selecting raw motion input
  • Added macOS specific GLFW_COCOA_RETINA_FRAMEBUFFER window hint
  • Added macOS specific GLFW_COCOA_FRAME_NAME window hint
  • Added macOS specific GLFW_COCOA_GRAPHICS_SWITCHING window hint
  • Added macOS specific GLFW_COCOA_CHDIR_RESOURCES init hint
  • Added macOS specific GLFW_COCOA_MENUBAR init hint
  • Added X11 specific GLFW_X11_CLASS_NAME and GLFW_X11_INSTANCE_NAME window hints
  • Added GLFW_OSMESA_CONTEXT_API for creating OpenGL contexts with OSMesa
  • Added GLFW_LOCK_KEY_MODS input mode and GLFW_MOD_*_LOCK mod bits
  • Added headless OSMesa backend
  • Added definition of GLAPIENTRY to public header
  • Added glfwSetMonitorUserPointer and glfwGetMonitorUserPointer for per-monitor user pointers
  • Added glfwSetJoystickUserPointer and glfwGetJoystickUserPointer for per-joystick user pointers
  • Added GLFW_INCLUDE_ES32 for including the OpenGL ES 3.2 header
@Mokosha Mokosha mentioned this issue Jul 14, 2019
@Mokosha
Copy link
Collaborator Author

Mokosha commented Sep 13, 2019

Currently blocking commercialhaskell/stackage#4824

@Mokosha
Copy link
Collaborator Author

Mokosha commented Sep 25, 2019

Note, the last few unfinished bits aren't really exposed via this library (the joystick/monitor user pointers and some header includes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant