🪐A fully-featured OpenGL and GLFW extension for PHP. 🔋Batteries included (Math Functions, Texture Loaders, etc..)
OTHER License
Version 2.2 of PHP-GLFW brings a ton of new and major features. The library remains fully backward compatible with version 2.1, which is why this is not a major release.
Version 2.2 introduces the Vector Graphics API, an HTML5 Canvas-inspired rendering API that simplifies the process of rendering shapes and elements on the screen. This API utilizes OpenGL under the hood, allowing you to combine the raw power of OpenGL with the simplicity of the VG API.
With the PHP-GLFW Vector Graphics API, you can:
Please see the documentation here: https://phpgl.net/user-guide/vector-graphics/creating_a_vgcontext.html
In this version, we also introduce statically compiled PHP binaries that already include the PHP-GLFW extension, making it easy to ship native applications using PHP-GLFW.
This is currently only supported on macOS. On Windows, the DLL and EXE files are already quite portable.
You will find these directly attached to the release, for example php-8.2-glfw-cli-macos-arm64.zip
.
Generating noise can be quite computationally intensive, making it difficult and inefficient to implement directly in PHP. This is why PHP-GLFW now includes a collection of noise functions for common use cases.
You can also directly fill a buffer with noise, enabling real-time procedural effects from PHP.
Documentation about the noise: https://phpgl.net/user-guide/noise/noise_functions.html
quantizeToUChar
, allowing float buffers to be easily quantized.UByteBuffers
.jpg
, png
, bmp
, and tga
.Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.1.3...v2.2.0
You can find the windows dll
files attached to the release:
glfw_php8.x_ts_x64.zip
glfw_php8.x_nts_x64.zip
Published by mario-deluna about 1 year ago
Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.1.2...v2.1.3
You can find the windows dll
files attached to the release:
glfw_php8.0_ts_x64.zip
glfw_php8.1_ts_x64.zip
glfw_php8.2_ts_x64.zip
glfw_php8.0_nts_x64.zip
glfw_php8.1_nts_x64.zip
glfw_php8.2_nts_x64.zip
Published by mario-deluna over 1 year ago
Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.1.1...v2.1.2
You can find the windows dll
files attached to the release:
glfw_php8.0_ts_x64.zip
glfw_php8.1_ts_x64.zip
glfw_php8.2_ts_x64.zip
glfw_php8.0_nts_x64.zip
glfw_php8.1_nts_x64.zip
glfw_php8.2_nts_x64.zip
Published by mario-deluna almost 2 years ago
In this release:
glDrawBuffers
support.glReadPixels
support.Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.1.0...v2.1.1
You can find the windows dll
files attached to the release:
glfw_php8.0_ts_x64.zip
glfw_php8.1_ts_x64.zip
glfw_php8.2_ts_x64.zip
glfw_php8.0_nts_x64.zip
glfw_php8.1_nts_x64.zip
glfw_php8.2_nts_x64.zip
Published by mario-deluna almost 2 years ago
Full Changelog: https://github.com/mario-deluna/php-glfw/compare/v2.0.0...v2.1.0
You can find the windows dll
files attached to the release:
PHP 8.0 Thread Safe x64
glfw_php8.0_ts_x64_dll.zip
PHP 8.1 Thread Safe x64
glfw_php8.1_ts_x64_dll.zip
PHP 8.0 Non Thread Safe x64
glfw_php8.0_nts_x64_dll.zip
PHP 8.1 Non Thread Safe x64
glfw_php8.1_nts_x64_dll.zip
Published by mario-deluna about 2 years ago
Full Changelog: https://github.com/mario-deluna/php-glfw/commits/v2.0.0
You can find the windows dll
files attached to the release:
PHP 8.0 Thread Safe x64
glfw_php8.0_ts_x64_dll.zip
PHP 8.1 Thread Safe x64
glfw_php8.1_ts_x64_dll.zip
PHP 8.0 Non Thread Safe x64
glfw_php8.0_nts_x64_dll.zip
PHP 8.1 Non Thread Safe x64
glfw_php8.1_nts_x64_dll.zip