MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / bindGLFunction

Function bindGLFunction

Engine/source/platformPOSIX/POSIXGL.client.cpp:96–110  ·  view source on GitHub ↗

------------------------------------------------------------------ bind functions for each function prototype ------------------------------------------------------------------

Source from the content-addressed store, hash-verified

94//bind functions for each function prototype
95//------------------------------------------------------------------
96static bool bindGLFunction( void *&fnAddress, const char *name )
97{
98 void* addr = (void*)SDL_GL_GetProcAddress(name);
99 bool ok = (bool)addr;
100 if( !ok )
101 {
102 if (!isFnOk(name))
103 Con::errorf(ConsoleLogEntry::General, " Missing OpenGL function '%s'", name);
104 else
105 ok = true;
106 }
107 else
108 fnAddress = addr;
109 return ok;
110}
111
112static bool bindEXTFunction( void *&fnAddress, const char *name )
113{

Callers

nothing calls this directly

Calls 3

SDL_GL_GetProcAddressFunction · 0.85
isFnOkFunction · 0.85
errorfFunction · 0.50

Tested by

no test coverage detected