glfwGetVersion

Retrieves the version of the GLFW library.

This function retrieves the major, minor and revision numbers of the GLFW library. It is intended for when you are using GLFW as a shared library and want to ensure that you are using the minimum required version.

Any or all of the version arguments may be null.

extern (C) @nogc nothrow __gshared
void
glfwGetVersion
(
int* major
,
int* minor
,
int* rev
)

Parameters

major int*

Where to store the major version number, or null.

minor int*

Where to store the minor version number, or null.

rev int*

Where to store the revision number, or null.

Errors: None.

@remark This function may be called before @ref glfwInit.

Thread Safety

This function may be called from any thread.

@sa @ref intro_version @sa @ref glfwGetVersionString

Meta

Since

Added in version 1.0.

Ingroup: init