ffi-headers/glfw3-headers

PHP FFI GLFW3 Headers

1.0.2 2022-08-17 19:29 UTC

This package is auto-updated.

Last update: 2024-11-18 05:55:19 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License MIT

GLFW3 Headers

This is a C headers of the GLFW3 adopted for PHP.

Requirements

  • PHP >= 8.1

Installation

Library is available as composer repository and can be installed using the following command in a root of your project.

$ composer require ffi-headers/glfw3-headers

Usage

use FFI\Headers\GLFW3;

$headers = GLFW3::create(
    GLFW3\Platform::X11,  // Window API
    GLFW3\Context::GLX, // Context API
    GLFW3\Version::V3_3_6,      // GLFW Headers Version
);

echo $headers;

Please note that the use of header files is not the latest version:

  • Takes time to download and install (This will be done in the background during initialization).
  • May not be compatible with the PHP headers library.