[go: up one dir, main page]

glfwGetVersion

Function glfwGetVersion 

Source
pub unsafe extern "C" fn glfwGetVersion(
    major: *mut i32,
    minor: *mut i32,
    rev: *mut i32,
)
Expand description

@brief 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.

@param[out] major Where to store the major version number, or NULL. @param[out] minor Where to store the minor version number, or NULL. @param[out] rev 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

@since Added in version 1.0.

@ingroup init