1sage(3)                    Library Functions Manual                    sage(3)
2
3
4

NAME

6       sage -  The SDL library for OpenGL extensions.
7
8

DESCRIPTION

10       #include <sage/sage.h>
11
12       Sage  is a small C library providing Open GL extensions to applications
13       using SDL. It has been automatically generated from the glext.h  header
14       file  from  the  OpenGL website. The Sage source package comes with the
15       Perl scripts to generate new sources from updated glext.h files.
16
17       Additionally, it provides a way of accessing the standard  GL  and  GLU
18       headers  in a cross platform method. sage/GL.h and sage/GLU.h should be
19       used in place of gl/GL.h and gl/GLU.h (or the equivalent on other plat‐
20       forms.)
21
22       To  use  Sage, an application must first call sage_init once the OpenGL
23       context has been created. This checks for the existence of each  exten‐
24       sion it knows about and links up the appropriate function pointers. The
25       array sage_ext sets each exension that is found to 1, and 0  otherwise.
26       Applications  should  check  the existence of the extension in sage_ext
27       before using it.
28
29       Extensions can then be used by their name as defined in the spec.
30

BUGS

32       Sage does not check to see of the OpenGL context is valid.
33
34       On some systems, the standard Open GL header causes problems with  sage
35       (namespace conflicts).
36
37       Apparently some broken GL implmentations may report the existence of an
38       extension, but not actually provide it. Sage will not detect this.
39

AUTHOR

41       Simon Goodall (simon (at) simongoodall.co.uk)
42

SEE ALSO

44       sage_init(3)
45
46
47
48                              September 22, 2005                       sage(3)
Impressum