glfwInitHint

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.

extern (C) @nogc nothrow __gshared
void
glfwInitHint
(
int hint
,
int value
)

Parameters

hint int

The init hint to set.

value int

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

Meta

Since

Added in version 3.3.

Ingroup: init