package glfw-ocaml
Build not checked sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A GLFW binding for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
3.4.tar.gz
md5=61e08f79d5e0fca65694c28d7be20fea
sha512=925c7dfb730ae47991e18ade7caff82a6179413dc51c63dba8f6ebf2722c1afed7c1b171e939c99bc15586e837eb8b1fb09390d40e60f45ce51807dd9a504cdf
doc/CHANGES.html
Changelog
All notable user-facing changes to GLFW-OCaml are documented in this file. The format is based on Keep a Changelog.
See the GLFW changelog for the features added by new versions of GLFW.
3.4
This release updates the binding to GLFW 3.4; see the GLFW release notes for the features added in this version of GLFW.
Added
- Support for the new GLFW 3.4 features, including the new exceptions (
CursorUnavailable,FeatureUnavailable,FeatureUnimplemented,PlatformUnavailable), the new init hints (Platform,AnglePlatformType,X11XcbVulkanSurface,WaylandLibdecor), the new window hints and attributes (e.g.MousePassthrough,PositionXandPositionY,ScaleFramebuffer,Win32KeyboardMenu,Win32ShowDefault,WaylandAppID), the new cursor shapes and theCapturedcursor mode, named gamepad buttons and axes (gamepad_button_*,gamepad_axis_*) and the new functionsgetPlatform,platformSupportedandgetWindowTitle.
Changed
- Flag lists (key modifiers, joystick hats) are now returned in ascending order.
getGamepadStatenow raisesInvalidValuewhen the joystick is not connected or is not a gamepad, instead of returning meaningless data.getPrimaryMonitornow raisesFailurewhen there is no primary monitor.getKeyandgetKeyScancodenow raiseInvalid_argumentwhen called withUnknown.Image.createnow requires strictly positive dimensions.- The compatibility of the installed GLFW package version is now checked with pkg-config at build time.
Fixed
- The window attributes
DoubleBuffer,ContextDebug,ContextNoErrorandContextReleaseBehaviorcan now be read withgetWindowAttrib. - The missing key modifiers
CapsLockandNumLockhave been added. - The joystick callback now reports
ConnectedandDisconnectedcorrectly. getWindowAttribno longer fails on theContextReleaseBehaviorattribute.- The dimension check in
Image.createcan no longer overflow. getClipboardStringno longer crashes when GLFW returnsNULL.- Joysticks with many buttons or hats are now handled correctly.
- Memory allocation failures now raise
OutOfMemoryinstead of crashing. - An exception raised inside a callback is now reported as a fatal uncaught exception instead of escaping into C code.
- Calling
terminatewithout having destroyed every window first no longer leaks memory. - The error callback no longer risks using an invalidated value if a garbage collection happens at the wrong time.
Requirements
- OCaml >= 4.03.0
- dune >= 3.1
Known limitations
getPrimaryMonitorandgetGamepadStateraise exceptions instead of returning an option type; this will be fixed in the next major version (see the README).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page