Lines Matching +full:- +full:wc
79 WNDCLASSEX wc; in windows_create_context() local
80 wc.cbSize = sizeof(WNDCLASSEX); in windows_create_context()
81 wc.style = CS_HREDRAW | CS_VREDRAW; in windows_create_context()
82 wc.lpfnWndProc = DefWindowProc; in windows_create_context()
83 wc.cbClsExtra = 0; in windows_create_context()
84 wc.cbWndExtra = 0; in windows_create_context()
85 wc.hInstance = GetModuleHandle(NULL); in windows_create_context()
86 wc.hIcon = 0; in windows_create_context()
87 wc.hCursor = 0; in windows_create_context()
88 wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); in windows_create_context()
89 wc.lpszMenuName = NULL; in windows_create_context()
90 wc.lpszClassName = GL_TEMP_WINDOW_CLASS; in windows_create_context()
91 wc.hIconSm = 0; in windows_create_context()
92 RegisterClassEx(&wc); in windows_create_context()
105 gc->pxfi = pxfi; in windows_create_context()
106 SetPixelFormat(hdc, gc->pxfi, NULL); in windows_create_context()
108 gc->ctx = wglCreateContext(hdc); in windows_create_context()
110 if (shared && gc->ctx) in windows_create_context()
111 wglShareLists(shared->ctx, gc->ctx); in windows_create_context()
116 if (!gc->ctx) in windows_create_context()
140 WNDCLASSEX wc; in windows_create_context_attribs() local
141 wc.cbSize = sizeof(WNDCLASSEX); in windows_create_context_attribs()
142 wc.style = CS_HREDRAW | CS_VREDRAW; in windows_create_context_attribs()
143 wc.lpfnWndProc = DefWindowProc; in windows_create_context_attribs()
144 wc.cbClsExtra = 0; in windows_create_context_attribs()
145 wc.cbWndExtra = 0; in windows_create_context_attribs()
146 wc.hInstance = GetModuleHandle(NULL); in windows_create_context_attribs()
147 wc.hIcon = 0; in windows_create_context_attribs()
148 wc.hCursor = 0; in windows_create_context_attribs()
149 wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); in windows_create_context_attribs()
150 wc.lpszMenuName = NULL; in windows_create_context_attribs()
151 wc.lpszClassName = GL_TEMP_WINDOW_CLASS; in windows_create_context_attribs()
152 wc.hIconSm = 0; in windows_create_context_attribs()
153 RegisterClassEx(&wc); in windows_create_context_attribs()
166 shareContext = shared->ctx; in windows_create_context_attribs()
169 gc->pxfi = pxfi; in windows_create_context_attribs()
170 SetPixelFormat(hdc, gc->pxfi, NULL); in windows_create_context_attribs()
172 gc->ctx = wglCreateContextAttribsARB(hdc, shareContext, attribList); in windows_create_context_attribs()
177 if (!gc->ctx) in windows_create_context_attribs()
189 wglDeleteContext(context->ctx); in windows_destroy_context()
190 context->ctx = NULL; in windows_destroy_context()
196 HDC drawDc = draw->callbacks->getdc(draw); in windows_bind_context()
198 if (!draw->pxfi) in windows_bind_context()
200 SetPixelFormat(drawDc, context->pxfi, NULL); in windows_bind_context()
201 draw->pxfi = context->pxfi; in windows_bind_context()
213 HDC readDc = read->callbacks->getdc(read); in windows_bind_context()
215 BOOL ret = wglMakeContextCurrentARB(drawDc, readDc, context->ctx); in windows_bind_context()
217 read->callbacks->releasedc(read, readDc); in windows_bind_context()
227 BOOL ret = wglMakeCurrent(drawDc, context->ctx); in windows_bind_context()
234 draw->callbacks->releasedc(draw, drawDc); in windows_bind_context()
253 HDC drawDc = GetDC(draw->hWnd); in windows_swap_buffers()
255 ReleaseDC(draw->hWnd, drawDc); in windows_swap_buffers()
292 WNDCLASSEX wc; in windows_call_with_context() local
294 wc.cbSize = sizeof(WNDCLASSEX); in windows_call_with_context()
295 wc.style = CS_HREDRAW | CS_VREDRAW; in windows_call_with_context()
296 wc.lpfnWndProc = DefWindowProc; in windows_call_with_context()
297 wc.cbClsExtra = 0; in windows_call_with_context()
298 wc.cbWndExtra = 0; in windows_call_with_context()
299 wc.hInstance = GetModuleHandle(NULL); in windows_call_with_context()
300 wc.hIcon = 0; in windows_call_with_context()
301 wc.hCursor = 0; in windows_call_with_context()
302 wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); in windows_call_with_context()
303 wc.lpszMenuName = NULL; in windows_call_with_context()
304 wc.lpszClassName = WIN_GL_TEST_WINDOW_CLASS; in windows_call_with_context()
305 wc.hIconSm = 0; in windows_call_with_context()
306 glTestWndClass = RegisterClassEx(&wc); in windows_call_with_context()
373 r->gl_extensions = strdup(proc(GL_EXTENSIONS)); in windows_extensions_test()
376 r->wgl_extensions = strdup(wglGetExtensionsStringARB(hdc)); in windows_extensions_test()