1UNTITLED LOCAL UNTITLED
2
4 glutExtensionSupported — Determine if an OpenGL extension is available.
5
7 OpenGLUT - opengl
8
10 #include <openglut.h>
11
12 int
13 glutExtensionSupported(const char *extension);
14
16 extension A string-name of an extension.
17
19 Returns 0 if OpenGLUT cannot determine that the requested extension is
20 definitely present. Only checks extensions from glGetString().
21
23 Wouldn't this be simpler and clearer if we used strtok()?
24
25 Consider an ogWarning() if there is no current rendering context.
26
27 This is an ugly bit of code with 3 return statements, one of which is
28 never reached.
29
31 glGetString(3)
32
33
34
35
36 Epoch