Skip to content

Releases: mario-deluna/php-glfw

v2.2.0

18 Aug 19:58
Compare
Choose a tag to compare

What's Changed

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.

Vector Graphics API

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.

circle_demo

With the PHP-GLFW Vector Graphics API, you can:

  • Render simple shapes, such as rectangles, circles, paths, etc.
  • Render text from font files efficiently and effortlessly.
  • Render gradients and images.
  • Create GUIs.
  • And much more.

Please see the documentation here: https://phpgl.net/user-guide/vector-graphics/creating_a_vgcontext.html

Statically Compiled Binaries

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.

Noise Functions

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.

noise_demo

Documentation about the noise: https://phpgl.net/user-guide/noise/noise_functions.html

Other Notable Changes:

  • Added support for PHP 8.3.
  • Buffers, Vec, Mat4, and Color Objects can now be serialized.
  • Added the ability to retrieve textures from the GPU.
  • Added the ability to create texture objects from buffers.
  • Added quantizeToUChar, allowing float buffers to be easily quantized.
  • You can now push strings into UByteBuffers.
  • Texture Objects can now be saved to disk as jpg, png, bmp, and tga.
  • Major improvements to the styling of the documentation page, enhancing readability.
  • We have a new logo 🎉

PRs

Full Changelog: v2.1.3...v2.2.0


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

v2.1.3

15 Aug 22:44
Compare
Choose a tag to compare

Changes

  • Updated documentation.
  • Updated the linux and macOS .m4 autoconf to properly include vendor dependencies when compiled inline.

Full Changelog: v2.1.2...v2.1.3


Windows DLL

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

  • PHP 8.0 Thread Safe x64
    glfw_php8.0_ts_x64.zip
  • PHP 8.1 Thread Safe x64
    glfw_php8.1_ts_x64.zip
  • PHP 8.2 Thread Safe x64
    glfw_php8.2_ts_x64.zip

  • PHP 8.0 Non Thread Safe x64
    glfw_php8.0_nts_x64.zip
  • PHP 8.1 Non Thread Safe x64
    glfw_php8.1_nts_x64.zip
  • PHP 8.2 Non Thread Safe x64
    glfw_php8.2_nts_x64.zip

v2.1.2

12 Mar 12:35
Compare
Choose a tag to compare

Changes

  • Updated documentation.
  • Added support for float buffers with GlReadPixels.
  • Added basic serialization of math objects.
  • Added support for vec3 * mat4 multiplication.
  • Added support for vec4 * mat4 multiplication.

Full Changelog: v2.1.1...v2.1.2


Windows DLL

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

  • PHP 8.0 Thread Safe x64
    glfw_php8.0_ts_x64.zip
  • PHP 8.1 Thread Safe x64
    glfw_php8.1_ts_x64.zip
  • PHP 8.2 Thread Safe x64
    glfw_php8.2_ts_x64.zip

  • PHP 8.0 Non Thread Safe x64
    glfw_php8.0_nts_x64.zip
  • PHP 8.1 Non Thread Safe x64
    glfw_php8.1_nts_x64.zip
  • PHP 8.2 Non Thread Safe x64
    glfw_php8.2_nts_x64.zip

v2.1.1

21 Jan 10:26
Compare
Choose a tag to compare

In this release:

  • Added a few more utility functions to the quaternion math object.
  • Quat can now be multiplied with Vec3 and Mat4.
  • Added glDrawBuffers support.
  • Added glReadPixels support.
  • Added AABB generator for mesh loading, in obj loader.

Full Changelog: v2.1.0...v2.1.1


Windows DLL

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

  • PHP 8.0 Thread Safe x64
    glfw_php8.0_ts_x64.zip
  • PHP 8.1 Thread Safe x64
    glfw_php8.1_ts_x64.zip
  • PHP 8.2 Thread Safe x64
    glfw_php8.2_ts_x64.zip

  • PHP 8.0 Non Thread Safe x64
    glfw_php8.0_nts_x64.zip
  • PHP 8.1 Non Thread Safe x64
    glfw_php8.1_nts_x64.zip
  • PHP 8.2 Non Thread Safe x64
    glfw_php8.2_nts_x64.zip

v2.1.0

01 Jan 17:00
Compare
Choose a tag to compare
  • This release mostly introduces a few small breaking naming changes around the math functions to be more consistent.
  • Also this release introduces a built-in quaternion object.
  • Support for PHP8.2

Full Changelog: v2.0.0...v2.1.0

Windows DLL

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

v2.0.0

16 Oct 19:40
613ee26
Compare
Choose a tag to compare

Full Changelog: https://github.com/mario-deluna/php-glfw/commits/v2.0.0

Windows DLL

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