glfwGetVersionString function

String glfwGetVersionString()

! @brief Returns a string describing the compile-time configuration.

This function returns the compile-time generated version string(@ref intro_version_string) of the GLFW library binary. It describes the version, platform, compiler and any platform-specific compile-time options. It should not be confused with the OpenGL or OpenGL ES version string, queried with glGetString.

Do not use the version string to parse the GLFW library version. The @ref glfwGetVersion function provides the version of the running library binary in numerical format.

@return The ASCII encoded GLFW version string.

@errors None.

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

@pointer_lifetime The returned string is static and compile-time generated.

@thread_safety This function may be called from any thread.

@sa @ref intro_version @sa @ref glfwGetVersion

@since Added in version 3.0.

@ingroup init

GLFWAPI const char* glfwGetVersionString(void)

Implementation

String glfwGetVersionString() {
  final glfwGetVersionStringLookupFunction = libglfw.lookupFunction<
      Pointer<Utf8> Function(),
      Pointer<Utf8> Function()>('glfwGetVersionString');
  return glfwGetVersionStringLookupFunction().toDartString();
}