Annotated edit history of
SDL_GL_GetProcAddress(3) version 2 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SDL_GL_!GetProcAddress |
|
|
2 |
!!!SDL_GL_!GetProcAddress |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
EXAMPLE |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
SDL_GL_!GetProcAddress- Get the address of a GL function |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__#include __ |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__void *SDL_GL_!GetProcAddress__(__const char* |
|
|
20 |
proc__); |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
Returns the address of the GL function __proc__, or |
|
|
25 |
__NULL__ if the function is not found. If the GL library |
|
|
26 |
is loaded at runtime, with __SDL_GL_!LoadLibrary__, then |
|
|
27 |
''all'' GL functions must be retrieved this way. Usually |
|
|
28 |
this is used to retrieve function pointers to OpenGL |
|
|
29 |
extensions. |
|
|
30 |
!!EXAMPLE |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
typedef void (*GL_ActiveTextureARB_Func)(unsigned int); |
|
|
34 |
GL_ActiveTextureARB_Func glActiveTextureARB_ptr = 0; |
|
|
35 |
int has_multitexture=1; |
|
|
36 |
. |
|
|
37 |
. |
|
|
38 |
. |
|
|
39 |
/* Get function pointer */ |
|
|
40 |
glActiveTextureARB_ptr=(GL_ActiveTextureARB_Func) SDL_GL_!GetProcAddress( |
|
|
41 |
!!SEE ALSO |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
__SDL_GL_!LoadLibrary__ |
|
|
45 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.