Lines Matching refs:window
345 GLFWbool _glfwRefreshContextAttribs(_GLFWwindow* window,
359 window->context.source = ctxconfig->source;
360 window->context.client = GLFW_OPENGL_API;
363 glfwMakeContextCurrent((GLFWwindow*) window);
364 if (_glfwPlatformGetTls(&_glfw.contextSlot) != window)
367 window->context.GetIntegerv = (PFNGLGETINTEGERVPROC)
368 window->context.getProcAddress("glGetIntegerv");
369 window->context.GetString = (PFNGLGETSTRINGPROC)
370 window->context.getProcAddress("glGetString");
371 if (!window->context.GetIntegerv || !window->context.GetString)
378 version = (const char*) window->context.GetString(GL_VERSION);
403 window->context.client = GLFW_OPENGL_ES_API;
409 &window->context.major,
410 &window->context.minor,
411 &window->context.revision))
413 if (window->context.client == GLFW_OPENGL_API)
428 if (window->context.major < ctxconfig->major ||
429 (window->context.major == ctxconfig->major &&
430 window->context.minor < ctxconfig->minor))
439 if (window->context.client == GLFW_OPENGL_API)
444 window->context.major, window->context.minor);
451 window->context.major, window->context.minor);
458 if (window->context.major >= 3)
464 window->context.GetStringi = (PFNGLGETSTRINGIPROC)
465 window->context.getProcAddress("glGetStringi");
466 if (!window->context.GetStringi)
475 if (window->context.client == GLFW_OPENGL_API)
478 if (window->context.major >= 3)
481 window->context.GetIntegerv(GL_CONTEXT_FLAGS, &flags);
484 window->context.forward = GLFW_TRUE;
487 window->context.debug = GLFW_TRUE;
494 window->context.debug = GLFW_TRUE;
498 window->context.noerror = GLFW_TRUE;
502 if (window->context.major >= 4 ||
503 (window->context.major == 3 && window->context.minor >= 2))
506 window->context.GetIntegerv(GL_CONTEXT_PROFILE_MASK, &mask);
509 window->context.profile = GLFW_OPENGL_COMPAT_PROFILE;
511 window->context.profile = GLFW_OPENGL_CORE_PROFILE;
518 window->context.profile = GLFW_OPENGL_COMPAT_PROFILE;
529 window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB,
533 window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET;
535 window->context.robustness = GLFW_NO_RESET_NOTIFICATION;
547 window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB,
551 window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET;
553 window->context.robustness = GLFW_NO_RESET_NOTIFICATION;
560 window->context.GetIntegerv(GL_CONTEXT_RELEASE_BEHAVIOR, &behavior);
563 window->context.release = GLFW_RELEASE_BEHAVIOR_NONE;
565 window->context.release = GLFW_RELEASE_BEHAVIOR_FLUSH;
572 window->context.getProcAddress("glClear");
575 if (window->doublebuffer)
576 window->context.swapBuffers(window);
620 _GLFWwindow* window = (_GLFWwindow*) handle;
625 if (window && window->context.client == GLFW_NO_API)
628 "Cannot make current with a window that has no OpenGL or OpenGL ES context");
634 if (!window || window->context.source != previous->context.source)
638 if (window)
639 window->context.makeCurrent(window);
652 _GLFWwindow* window = (_GLFWwindow*) handle;
653 assert(window != NULL);
655 if (window->context.client == GLFW_NO_API)
658 "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context");
662 window->context.swapBuffers(window);
667 _GLFWwindow* window;
671 window = _glfwPlatformGetTls(&_glfw.contextSlot);
672 if (!window)
679 window->context.swapInterval(interval);
684 _GLFWwindow* window;
689 window = _glfwPlatformGetTls(&_glfw.contextSlot);
690 if (!window)
703 if (window->context.major >= 3)
710 window->context.GetIntegerv(GL_NUM_EXTENSIONS, &count);
715 window->context.GetStringi(GL_EXTENSIONS, i);
732 window->context.GetString(GL_EXTENSIONS);
745 return window->context.extensionSupported(extension);
750 _GLFWwindow* window;
755 window = _glfwPlatformGetTls(&_glfw.contextSlot);
756 if (!window)
763 return window->context.getProcAddress(procname);