Penguin
Blame: SDL_GL_GetProcAddress(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_GL_GetProcAddress(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_GL_!GetProcAddress
2 !!!SDL_GL_!GetProcAddress
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 EXAMPLE
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_GL_!GetProcAddress- Get the address of a GL function
1 perry 13 !!SYNOPSIS
14
15
16 __#include __
17
18
2 perry 19 __void *SDL_GL_!GetProcAddress__(__const char*
1 perry 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
2 perry 26 is loaded at runtime, with __SDL_GL_!LoadLibrary__, then
1 perry 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 */
2 perry 40 glActiveTextureARB_ptr=(GL_ActiveTextureARB_Func) SDL_GL_!GetProcAddress(
1 perry 41 !!SEE ALSO
42
43
2 perry 44 __SDL_GL_!LoadLibrary__
1 perry 45 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.