1 #ifndef __SG_EXTENSIONS_HXX
2 #define __SG_EXTENSIONS_HXX 1
8 inline void (*SGLookupFunction(const char *func))() {
11 return (void (*)()) wglGetProcAddress(func);
15 // If the target system s UNIX and the ARB_get_proc_address
16 // GLX extension is *not* guaranteed to be supported. An alternative
17 // dlsym-based approach will be used instead.
18 #if defined( linux ) || defined ( sgi )
21 libHandle = dlopen("libGL.so", RTLD_LAZY);
22 fptr = (void (*)()) dlsym(libHandle, func);
26 return glXGetProcAddressARB(func);