Skip to content

v2.2.1

Latest
Compare
Choose a tag to compare
@mario-deluna mario-deluna released this 19 Nov 17:55
· 2 commits to master since this release
cb4a47b

What's Changed

  • We now officially support PHP 8.3.
  • You can now install php-glfw via pie on linux and macOS. Windows will follow.

Gamepad and Joystick Support

  • New GLFW Functions Implemented:
    • glfwGetJoystickAxes
    • glfwGetJoystickButtons
    • glfwGetGamepadAxes
    • glfwGetGamepadButtons
  • Examples:
    • Joystick Input Example: Demonstrates accessing joystick/gamepad input.
    • Asteroids Game Example: A simple game showcasing the vector graphics library with gamepad support.

Video Mode Functions

  • New GLFW Functions Implemented:
    • glfwGetVideoModes
    • glfwGetVideoMode
  • Features:
    • Retrieve available video modes for monitors.
    • Access current video mode settings.

New Examples Added

  • Joystick Input: examples/vg/input_joystick.php
  • Asteroids Game: examples/vg/fun_asteroids.php
  • Video Modes Display: examples/vg/videomodes.php

GLFW Functionality Enhancements

  • Nullable Parameters:
    • glfwSetWindowMonitor now accepts a nullable monitor parameter, allowing the function to set a window to windowed mode by passing NULL.

Fixes

NanoVG Library Update

  • Texture Wrapping Fix:
    • Vector Graphics API images changed GL_CLAMP_TO_EDGE to GL_CLAMP_TO_BORDER, addressing potential texture wrapping issues.

PRs

Full Changelog: v2.2.0...v2.2.1


Windows DLL

You can find the windows dll files attached to the release:

  • PHP 8.x Thread Safe x64
    glfw_php8.x_ts_x64.zip
  • PHP 8.x Non Thread Safe x64
    glfw_php8.x_nts_x64.zip