glfwInitHint function

void glfwInitHint(
  1. int hint,
  2. int value
)

! @brief Sets the specified init hint to the desired value.

This function sets hints for the next initialization of GLFW.

The values you set hints to are never reset by GLFW, but they only take effect during initialization. Once GLFW has been initialized, any values you set will be ignored until the library is terminated and initialized again.

Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.

@paramin hint The init hint(@ref init_hints) to set. @paramin value The new value of the init hint.

@errors Possible errors include @ref GLFW_INVALID_ENUM and @ref GLFW_INVALID_VALUE.

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

@thread_safety This function must only be called from the main thread.

@sa init_hints @sa glfwInit

@since Added in version 3.3.

@ingroup init

GLFWAPI void glfwInitHint(int hint, int value)

Implementation

void glfwInitHint(int hint, int value) {
  final glfwInitHintLookupFunction = libglfw.lookupFunction<
      Void Function(Int32 hint, Int32 value),
      void Function(int hint, int value)>('glfwInitHint');
  return glfwInitHintLookupFunction(hint, value);
}