pike.git / lib / modules / GLU.pmod

version» Context lines:

pike.git/lib/modules/GLU.pmod:1:   /* -  * $Id: GLU.pmod,v 1.13 2004/04/14 19:28:32 nilsson Exp $ +  * $Id: GLU.pmod,v 1.14 2004/04/16 15:43:01 nilsson Exp $    *    * GL Utilities module.    */      #pike __REAL_VERSION__      //! The GL Utilities module is a partial implementation of the   //! GLU library. This module only contains functions that someone   //! at some point actually needed to get his work done. If you   //! need a GLU function that isn't in here, copy the C code from   //! the GLU library (Mesa was used last time), tweak it so that   //! it compiles as Pike code and then check it in into the CVS.    - #if constant(GL) + #if constant(GL) && constant(GL.glOrtho)   import GL;      #ifndef M_PI   #define M_PI 3.1415926536   #endif      //! @decl void gluLookAt(float eyex, float eyey, float eyez,@   //! float centerx, float centery, float centerz,@   //! float upx, float upy, float upz)   //! @decl void gluLookAt(Math.Matrix eye, Math.Matrix center, Math.Matrix up)