MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / glfwSwapInterval

Function glfwSwapInterval

extern/glfw/src/context.c:658–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658GLFWAPI void glfwSwapInterval(int interval)
659{
660 _GLFWwindow* window;
661
662 _GLFW_REQUIRE_INIT();
663
664 window = _glfwPlatformGetTls(&_glfw.contextSlot);
665 if (!window)
666 {
667 _glfwInputError(GLFW_NO_CURRENT_CONTEXT,
668 "Cannot set swap interval without a current OpenGL or OpenGL ES context");
669 return;
670 }
671
672 window->context.swapInterval(interval);
673}
674
675GLFWAPI int glfwExtensionSupported(const char* extension)
676{

Callers 2

initMethod · 0.85

Calls 2

_glfwInputErrorFunction · 0.85
_glfwPlatformGetTlsFunction · 0.70

Tested by

no test coverage detected