pike.git / lib / modules / GLU.pmod

version» Context lines:

pike.git/lib/modules/GLU.pmod:1:   /* -  * $Id: GLU.pmod,v 1.12 2003/04/01 17:42:02 nilsson Exp $ +  * $Id: GLU.pmod,v 1.13 2004/04/14 19:28:32 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.glGet) + #if constant(GL)   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)
pike.git/lib/modules/GLU.pmod:233:      // matmul(A,proj,model);   // invert_matrix(A,m);      // transform_point(out,m,in);   // if (out[3]==0.0)   // return GL_FALSE;   // return ({ out[0]/out[3], out[1]/out[3], out[2]/out[3] });   // }    - #endif /* constant(GL) */ + #else /* constant(GL) */ + constant this_program_does_not_exist=1; + #endif