MCPcopy Create free account
hub / github.com/TankOs/SFGUI / WinGetProcAddress

Function WinGetProcAddress

src/SFGUI/GLLoader.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#endif
28
29static PROC WinGetProcAddress(const char *name)
30{
31 static HMODULE glMod = NULL;
32 PROC pFunc = wglGetProcAddress((LPCSTR)name);
33
34 if (pFunc) return pFunc;
35
36 if (NULL == glMod)
37 glMod = GetModuleHandleA("OpenGL32.dll");
38
39 return (PROC)GetProcAddress(glMod, (LPCSTR)name);
40}
41
42#define IntGetProcAddress(name) WinGetProcAddress(name)
43#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected