/** * If we can determine the WGL extension support from the current * context, then return that, otherwise give the answer that will just * send us on to get_proc_address().
*/ bool
epoxy_conservative_has_wgl_extension(constchar *ext)
{
HDC hdc = wglGetCurrentDC();
/** * Does the work necessary to update the win32 per-thread dispatch * tables when wglMakeCurrent() is called. * * Right now, we use global function pointers until the second * MakeCurrent occurs, at which point we switch to dispatch tables. * This could be improved in the future to track a resolved dispatch * table per context and reuse it when the context is made current * again.
*/ void
epoxy_handle_external_wglMakeCurrent(void)
{ if (!first_context_current) {
first_context_current = true;
} else { if (!already_switched_to_dispatch_table) {
already_switched_to_dispatch_table = true;
gl_switch_to_dispatch_table();
wgl_switch_to_dispatch_table();
}
/** * This global symbol is apparently looked up by Windows when loading * a DLL, but it doesn't declare the prototype.
*/ BOOL WINAPI
DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved);
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.25Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.