Lines Matching defs:context
104 // We must set the windows pixel format before we can create a WGL context
168 // We must set the windows pixel format before we can create a WGL context
187 windows_destroy_context(windowsContext *context)
189 wglDeleteContext(context->ctx);
190 context->ctx = NULL;
191 free(context);
194 int windows_bind_context(windowsContext *context, windowsDrawable *draw, windowsDrawable *read)
200 SetPixelFormat(drawDc, context->pxfi, NULL);
201 draw->pxfi = context->pxfi;
208 use the wglMakeContextCurrent extension to make the context current
215 BOOL ret = wglMakeContextCurrentARB(drawDc, readDc, context->ctx);
227 BOOL ret = wglMakeCurrent(drawDc, context->ctx);
241 void windows_unbind_context(windowsContext * context)
281 * Helper function for calling a test function on an initial context
319 // we must set a pixel format before we can create a context, just use the first one...