Description

A dynamic and static binding to the GLFW 3 library.

Package Information

Version4.0.0-alpha.5 (2017-Apr-25)
Homepage https://derelictorg.github.io/packages/glfw3.html
Repository https://github.com/DerelictOrg/DerelictGLFW3
LicenseBoost
AuthorsMike Parker
Registered byMike Parker
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

DerelictGLFW3

A dynamic and static binding to version 3.2 of the GLFW 3 library for the D Programming Language.

The dynamic binding is the default configuration and allows you to load the GLFW3 shared library manually at runtime. Please see the DerelictGLFW3 documentation and the sections on Compiling and Linking and The Derelict Loader, in the Derelict documentation, for information on how to build DerelictGLFW3 and load the GLFW3 library at run time. Here's some sample code.

import derelict.glfw3.glfw3;

void main() {
    // Load the GLFW 3 library.
    DerelictGLFW3.load();

    // Now GLFW 3 functions can be called.
    ...
}

The static binding allows you to link with the GLFW3 library both dynamically and statically. To enable this configuration, you must specify it as a subConfiguration in your dub.sdl file, or compile DerelictGLFW3 manually with -version=DerelictGLFW3Static. See the DerelictGLFW3 documentation for more information on this configuration.

Available versions

4.0.0-alpha.5 4.0.0-alpha.4 4.0.0-alpha.3 4.0.0-alpha.2 4.0.0-alpha.1 3.1.2 3.1.1 3.1.0 3.0.1 3.0.0 2.0.0 1.1.1 1.1.0 1.0.2 1.0.1 1.0.0 ~master ~dglfw-v3.2 ~4.0 ~3.2-b ~3.2 ~3.1-static ~3.1 ~3.0