Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3f42950656
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (31 sloc) 1.234 kB
#!/usr/bin/python -B
formulae = {
'wglGetProcAddress' : {
'entries' : [ 'wglGetProcAddress' ],
'impl' : [
'RegalAssert(dispatchTableGlobal.wglGetProcAddress);',
'PROC drvproc = ret = dispatchTableGlobal.wglGetProcAddress(lpszProc);',
'if (!ret)',
' return NULL;',
'ret = Lookup::gl_Lookup<PROC>(lpszProc);',
'if (ret)',
' return ret;'
],
'suffix' : [
'size_t off = Lookup::wgl_LookupOffset(lpszProc);',
'((void **)(&dispatchTableGlobal))[off] = (void *)drvproc;',
'ret = Lookup::wgl_Lookup<PROC>(lpszProc);'
]
},
'glXGetProcAddress' : {
'entries' : [ 'glXGetProcAddress','glXGetProcAddressARB' ],
'impl' : [
'ret = Lookup::gl_Lookup<void *>(reinterpret_cast<const char *>(procName));',
'if (ret)',
' return ret;',
'ret = Lookup::glx_Lookup<void *>(reinterpret_cast<const char *>(procName));',
'if (ret)',
' return ret;',
]
}
}
Jump to Line
Something went wrong with that request. Please try again.