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 nullablemonitor
parameter, allowing the function to set a window to windowed mode by passingNULL
.
Fixes
NanoVG Library Update
- Texture Wrapping Fix:
- Vector Graphics API images changed
GL_CLAMP_TO_EDGE
toGL_CLAMP_TO_BORDER
, addressing potential texture wrapping issues.
- Vector Graphics API images changed
PRs
- Gamepad & Joystick Support by @mario-deluna in #34
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