• Home
  • Raw
  • Download

Lines Matching +full:shared +full:- +full:glapi

27 #include "glapi.h"
65 windows_create_context(int pxfi, windowsContext *shared) in windows_create_context() argument
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()
126 windows_create_context_attribs(int pxfi, windowsContext *shared, const int *attribList) in windows_create_context_attribs() argument
165 if (shared) 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()
373 r->gl_extensions = strdup(proc(GL_EXTENSIONS)); in windows_extensions_test()
376 r->wgl_extensions = strdup(wglGetExtensionsStringARB(hdc)); in windows_extensions_test()