Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
sage(3)			   Library Functions Manual		       sage(3)

NAME
       sage -  The SDL library for OpenGL extensions.

DESCRIPTION
       #include	<sage/sage.h>

       Sage  is	a small	C library providing Open GL extensions to applications
       using SDL. It has been automatically generated from the glext.h	header
       file  from  the	OpenGL website.	The Sage source	package	comes with the
       Perl scripts to generate	new sources from updated glext.h files.

       Additionally, it	provides a way of accessing the	standard  GL  and  GLU
       headers	in a cross platform method. sage/GL.h and sage/GLU.h should be
       used in place of	gl/GL.h	and gl/GLU.h (or the equivalent	on other plat-
       forms.)

       To  use	Sage, an application must first	call sage_init once the	OpenGL
       context has been	created. This checks for the existence of each	exten-
       sion it knows about and links up	the appropriate	function pointers. The
       array sage_ext sets each	exension that is found to 1, and 0  otherwise.
       Applications  should  check  the	existence of the extension in sage_ext
       before using it.

       Extensions can then be used by their name as defined in the spec.

BUGS
       Sage does not check to see of the OpenGL	context	is valid.

       On some systems,	the standard Open GL header causes problems with  sage
       (namespace conflicts).

       Apparently some broken GL implmentations	may report the existence of an
       extension, but not actually provide it. Sage will not detect this.

AUTHOR
       Simon Goodall (simon (at) simongoodall.co.uk)

SEE ALSO
       sage_init(3)

			      September	22, 2005		       sage(3)

NAME | DESCRIPTION | BUGS | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sage&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help