MCPcopy Create free account
hub / github.com/SFML/SFML / getOpenGl32Function

Function getOpenGl32Function

src/SFML/Window/Win32/WglContext.cpp:61–69  ·  view source on GitHub ↗

We use a different loader for wgl functions since we load them directly from OpenGL32.dll

Source from the content-addressed store, hash-verified

59
60// We use a different loader for wgl functions since we load them directly from OpenGL32.dll
61sf::GlFunctionPointer getOpenGl32Function(const char* name)
62{
63 static const HMODULE module = GetModuleHandleA("OpenGL32.dll");
64
65 if (module)
66 return reinterpret_cast<sf::GlFunctionPointer>(GetProcAddress(module, reinterpret_cast<LPCSTR>(name)));
67
68 return nullptr;
69}
70
71
72////////////////////////////////////////////////////////////

Callers 1

getFunctionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected