Lines Matching refs:wgl
42 assert(_glfw.wgl.ARB_pixel_format); in getPixelFormatAttrib()
44 if (!_glfw.wgl.GetPixelFormatAttribivARB(window->context.wgl.dc, in getPixelFormatAttrib()
65 if (_glfw.wgl.ARB_pixel_format) in choosePixelFormat()
73 nativeCount = DescribePixelFormat(window->context.wgl.dc, in choosePixelFormat()
87 if (_glfw.wgl.ARB_pixel_format) in choosePixelFormat()
129 if (_glfw.wgl.ARB_multisample) in choosePixelFormat()
132 if (_glfw.wgl.ARB_framebuffer_sRGB || in choosePixelFormat()
133 _glfw.wgl.EXT_framebuffer_sRGB) in choosePixelFormat()
145 if (!DescribePixelFormat(window->context.wgl.dc, in choosePixelFormat()
238 if (wglMakeCurrent(window->context.wgl.dc, window->context.wgl.handle)) in makeContextCurrentWGL()
264 int count = abs(window->context.wgl.interval); in swapBuffersWGL()
269 SwapBuffers(window->context.wgl.dc); in swapBuffersWGL()
276 window->context.wgl.interval = interval; in swapIntervalWGL()
283 if (_glfw.wgl.EXT_swap_control) in swapIntervalWGL()
284 _glfw.wgl.SwapIntervalEXT(interval); in swapIntervalWGL()
291 if (_glfw.wgl.GetExtensionsStringEXT) in extensionSupportedWGL()
293 extensions = _glfw.wgl.GetExtensionsStringEXT(); in extensionSupportedWGL()
301 if (_glfw.wgl.GetExtensionsStringARB) in extensionSupportedWGL()
303 extensions = _glfw.wgl.GetExtensionsStringARB(wglGetCurrentDC()); in extensionSupportedWGL()
320 return (GLFWglproc) GetProcAddress(_glfw.wgl.instance, procname); in getProcAddressWGL()
327 if (window->context.wgl.handle) in destroyContextWGL()
329 wglDeleteContext(window->context.wgl.handle); in destroyContextWGL()
330 window->context.wgl.handle = NULL; in destroyContextWGL()
342 _glfw.wgl.extensionsLoaded = GLFW_TRUE; in loadWGLExtensions()
382 _glfw.wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) in loadWGLExtensions()
384 _glfw.wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) in loadWGLExtensions()
386 _glfw.wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) in loadWGLExtensions()
388 _glfw.wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) in loadWGLExtensions()
390 _glfw.wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) in loadWGLExtensions()
395 _glfw.wgl.ARB_multisample = in loadWGLExtensions()
397 _glfw.wgl.ARB_framebuffer_sRGB = in loadWGLExtensions()
399 _glfw.wgl.EXT_framebuffer_sRGB = in loadWGLExtensions()
401 _glfw.wgl.ARB_create_context = in loadWGLExtensions()
403 _glfw.wgl.ARB_create_context_profile = in loadWGLExtensions()
405 _glfw.wgl.EXT_create_context_es2_profile = in loadWGLExtensions()
407 _glfw.wgl.ARB_create_context_robustness = in loadWGLExtensions()
409 _glfw.wgl.EXT_swap_control = in loadWGLExtensions()
411 _glfw.wgl.ARB_pixel_format = in loadWGLExtensions()
413 _glfw.wgl.ARB_context_flush_control = in loadWGLExtensions()
429 if (_glfw.wgl.instance) in _glfwInitWGL()
432 _glfw.wgl.instance = LoadLibraryA("opengl32.dll"); in _glfwInitWGL()
433 if (!_glfw.wgl.instance) in _glfwInitWGL()
439 _glfw.wgl.CreateContext = (WGLCREATECONTEXT_T) in _glfwInitWGL()
440 GetProcAddress(_glfw.wgl.instance, "wglCreateContext"); in _glfwInitWGL()
441 _glfw.wgl.DeleteContext = (WGLDELETECONTEXT_T) in _glfwInitWGL()
442 GetProcAddress(_glfw.wgl.instance, "wglDeleteContext"); in _glfwInitWGL()
443 _glfw.wgl.GetProcAddress = (WGLGETPROCADDRESS_T) in _glfwInitWGL()
444 GetProcAddress(_glfw.wgl.instance, "wglGetProcAddress"); in _glfwInitWGL()
445 _glfw.wgl.GetCurrentDC = (WGLGETCURRENTDC_T) in _glfwInitWGL()
446 GetProcAddress(_glfw.wgl.instance, "wglGetCurrentDC"); in _glfwInitWGL()
447 _glfw.wgl.MakeCurrent = (WGLMAKECURRENT_T) in _glfwInitWGL()
448 GetProcAddress(_glfw.wgl.instance, "wglMakeCurrent"); in _glfwInitWGL()
449 _glfw.wgl.ShareLists = (WGLSHARELISTS_T) in _glfwInitWGL()
450 GetProcAddress(_glfw.wgl.instance, "wglShareLists"); in _glfwInitWGL()
459 if (_glfw.wgl.instance) in _glfwTerminateWGL()
460 FreeLibrary(_glfw.wgl.instance); in _glfwTerminateWGL()
481 if (!_glfw.wgl.extensionsLoaded) in _glfwCreateContextWGL()
485 share = ctxconfig->share->context.wgl.handle; in _glfwCreateContextWGL()
487 window->context.wgl.dc = GetDC(window->win32.handle); in _glfwCreateContextWGL()
488 if (!window->context.wgl.dc) in _glfwCreateContextWGL()
499 if (!DescribePixelFormat(window->context.wgl.dc, in _glfwCreateContextWGL()
507 if (!SetPixelFormat(window->context.wgl.dc, pixelFormat, &pfd)) in _glfwCreateContextWGL()
518 if (!_glfw.wgl.ARB_create_context) in _glfwCreateContextWGL()
528 if (!_glfw.wgl.ARB_create_context_profile) in _glfwCreateContextWGL()
538 if (!_glfw.wgl.ARB_create_context || in _glfwCreateContextWGL()
539 !_glfw.wgl.ARB_create_context_profile || in _glfwCreateContextWGL()
540 !_glfw.wgl.EXT_create_context_es2_profile) in _glfwCreateContextWGL()
548 if (_glfw.wgl.ARB_create_context) in _glfwCreateContextWGL()
572 if (_glfw.wgl.ARB_create_context_robustness) in _glfwCreateContextWGL()
591 if (_glfw.wgl.ARB_context_flush_control) in _glfwCreateContextWGL()
623 window->context.wgl.handle = in _glfwCreateContextWGL()
624 _glfw.wgl.CreateContextAttribsARB(window->context.wgl.dc, in _glfwCreateContextWGL()
626 if (!window->context.wgl.handle) in _glfwCreateContextWGL()
674 window->context.wgl.handle = wglCreateContext(window->context.wgl.dc); in _glfwCreateContextWGL()
675 if (!window->context.wgl.handle) in _glfwCreateContextWGL()
684 if (!wglShareLists(share, window->context.wgl.handle)) in _glfwCreateContextWGL()
721 return window->context.wgl.handle; in glfwGetWGLContext()