------------------------------------------------------------------ bind functions for each function prototype ------------------------------------------------------------------
| 94 | //bind functions for each function prototype |
| 95 | //------------------------------------------------------------------ |
| 96 | static 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 | |
| 112 | static bool bindEXTFunction( void *&fnAddress, const char *name ) |
| 113 | { |
nothing calls this directly
no test coverage detected