Skip to content

Releases: pongasoft/emscripten-glfw

Version 3.4.0.20240514

14 May 13:20
Compare
Choose a tag to compare
  • Implemented glfwSetClipboardString

Version 3.4.0.20240501

01 May 15:17
Compare
Choose a tag to compare
  • Fixed issue when calling glfwGetWindowContentScale with nullptr
  • Renamed javascript api/impl since these names are not unique to avoid potential conflicts
  • Added glfw3native.h to GLFW. Although not used (at this moment) by this implementation, this allows
    calling code to include it if necessary since it is part of a normal GLFW installation.

Version 3.4.0.20240318

18 Mar 19:45
Compare
Choose a tag to compare
  • Fixed joystick/gamepad code that was improperly mapping GLFW_GAMEPAD_AXIS_LEFT_TRIGGER
    GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER, GLFW_GAMEPAD_BUTTON_LEFT_THUMB, GLFW_GAMEPAD_BUTTON_RIGHT_THUMB
  • GLFW_GAMEPAD_AXIS_LEFT_TRIGGER and GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER are now properly represented as an analog
    value in the range [-1.0, +1.0]
  • Please note the change in version numbering which from now on will be tied to the GLFW version implemented + date
    of release of this port to avoid confusion

Version 1.1.0

29 Feb 17:12
Compare
Choose a tag to compare
  • Upgraded to GLFW 3.4
  • GLFW 3.4 features implemented
    • glfwGetPlatform and glfwPlatformSupported uses the GLFW_PLATFORM_EMSCRIPTEN constant defined in
      emscripten-glfw3.h (officially reserved value is 0x00060006)
    • glfwInitHint supports the new hint GLFW_PLATFORM
    • Supports all 10 cursors
    • Implemented glfwGetWindowTitle
    • Use GLFW_SCALE_FRAMEBUFFER to enable (resp. disable) Hi DPI support
    • Changed the functions that can report GLFW_FEATURE_UNAVAILABLE failure to report this error instead of a warning
  • GLFW 3.4 features not implemented
    • GLFW_MOUSE_PASSTHROUGH is not supported
    • GLFW_CURSOR_CAPTURED cursor input mode is not supported (not possible in a browser context)
    • glfwInitAllocator is implemented as noop (could be supported for the C++ part only if there is demand, not javascript)
    • GLFW_POSITION_X and GLFW_POSITION_Y are not supported (same as glfwSetWindowPos)
    • GLFW_ANGLE_PLATFORM_TYPE is not supported (no direct access in browser, but implementation is most likely using it anyway)
  • Since GLFW 3.4 introduces a proper constant to handle Hi DPI Awareness (GLFW_SCALE_FRAMEBUFFER), the prior
    constant used by this port (GLFW_SCALE_TO_MONITOR) is still accepted, but it is now deprecated. In addition,
    due to the fact that GLFW_SCALE_FRAMEBUFFER defaults to GLFW_TRUE, this port is now Hi DPI aware by default and
    needs to be explicitly turned off (glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GLFW_FALSE)) if this is the desired
    behavior.

Version 1.0.5

18 Feb 19:01
Compare
Choose a tag to compare
  • Fixed memory corruption with joystick

Version 1.0.4

24 Jan 14:55
Compare
Choose a tag to compare
  • Fixed version string

Version 1.0.3

23 Jan 19:07
Compare
Choose a tag to compare
  • Fixed emscripten_glfw3.h to work as a C file
  • Added create-archive target

Version 1.0.2

22 Jan 19:35
Compare
Choose a tag to compare
  • Added EMSCRIPTEN_GLFW3_DISABLE_JOYSTICK as a CMake option
  • Made joystick code truly conditional on EMSCRIPTEN_GLFW3_DISABLE_JOYSTICK define
  • Added EMSCRIPTEN_GLFW3_DISABLE_MULTI_WINDOW_SUPPORT as a CMake option and made the multi window code conditional on EMSCRIPTEN_GLFW3_DISABLE_MULTI_WINDOW_SUPPORT define
  • Misc: added github workflow to compile the code/display badge

Version 1.0.1

21 Jan 19:15
Compare
Choose a tag to compare
  • Fixed import

Version 1.0.0

21 Jan 18:57
Compare
Choose a tag to compare
  • First 1.0.0 release
  • Added examples
  • Added documentation
  • Fixed some issues
  • Removed GLFW_EMSCRIPTEN_CANVAS_SELECTOR window hint in favor of a new api emscripten_glfw_set_next_window_canvas_selector
  • Removed GLFW_EMSCRIPTEN_CANVAS_RESIZE_SELECTOR and Module.glfwSetCanvasResizableSelector in favor of a new
    api emscripten_glfw_make_canvas_resizable
  • This new api also offer the ability to deal with the handle automatically
  • Implemented getWindowPosition (canvas position in the browser window)
  • Implemented all timer apis (glfwSetTime, glfwGetTimerValue and glfwGetTimerFrequency)
  • Implemented glfwExtensionSupported
  • Implemented glfwSetWindowTitle (changes the browser window title)