Go to the source code of this file.
Data Structures | |
struct | extension_entry |
Defines | |
#define | EXTENTRY(P) { #P, (PROC) P } |
Functions | |
WINGDIAPI PROC APIENTRY | wglGetProcAddress (LPCSTR lpszProc) |
Variables | |
static struct extension_entry | extension_entries [] |
#define EXTENTRY | ( | P | ) | { #P, (PROC) P } |
Definition at line 40 of file stw_wgl_getprocaddress.c.
WINGDIAPI PROC APIENTRY wglGetProcAddress | ( | LPCSTR | lpszProc | ) |
Definition at line 56 of file stw_wgl_getprocaddress.c.
References extension_entry::name, and extension_entry::proc.
00058 { 00059 struct extension_entry *entry; 00060 00061 PROC p = (PROC) _glapi_get_proc_address( (const char *) lpszProc ); 00062 if (p) 00063 return p; 00064 00065 for (entry = extension_entries; entry->name; entry++) 00066 if (strcmp( lpszProc, entry->name ) == 0) 00067 return entry->proc; 00068 00069 return NULL; 00070 }
struct extension_entry extension_entries[] [static] |
Initial value:
{ { "wglGetExtensionsStringARB", (PROC) wglGetExtensionsStringARB }, { "wglChoosePixelFormatARB", (PROC) wglChoosePixelFormatARB }, { "wglGetPixelFormatAttribfvARB", (PROC) wglGetPixelFormatAttribfvARB }, { "wglGetPixelFormatAttribivARB", (PROC) wglGetPixelFormatAttribivARB }, { NULL, NULL } }
Definition at line 42 of file stw_wgl_getprocaddress.c.