| 72 | } UnsafePointerContainer; |
| 73 | |
| 74 | inline static GenericFunctionPointer glGetProcAddress(const char *name) { |
| 75 | UnsafePointerContainer pc; |
| 76 | pc.ObjectPointer = SDL_GL_GetProcAddress(name); |
| 77 | return pc.FunctionPointer; |
| 78 | } |
| 79 | |
| 80 | #ifndef __APPLE__ |
| 81 | PFNGLCREATEPROGRAMPROC glCreateProgram = 0; |