glfwExtensionSupported¶
Returns whether the specified extension is available.
This function returns whether the specified
API extension is supported by the current OpenGL or
OpenGL ES context. It searches both for client API extension and context
creation API extensions.
A context must be current on the calling thread. Calling this function
without a current context will cause a GLFW_NO_CURRENT_CONTEXT error.
As this functions retrieves and searches one or more extension strings each call, it is recommended that you cache its results if it is going to be used frequently. The extension strings will not change during the lifetime of a context, so there is no danger in doing this.
This function does not apply to Vulkan. If you are using Vulkan, see @ref
glfwGetRequiredInstanceExtensions, vkEnumerateInstanceExtensionProperties
and vkEnumerateDeviceExtensionProperties instead.
- arguments
-
string$extensionThe ASCII encoded name of the extension.
- returns
-
intGLFW_TRUEif the extension is available, orGLFW_FALSEotherwise.