pike.git / lib / modules / GLU.pmod

version» Context lines:

pike.git/lib/modules/GLU.pmod:1:   /*    * GL Utilities module.    */      #pike __REAL_VERSION__ + #require constant(GL.glOrtho)      //! 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. + //! it compiles as Pike code and then check it in into git.    - #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)
pike.git/lib/modules/GLU.pmod:229:   // in[3]=1.0;      // 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] });   // } -  - #else /* constant(GL) */ - constant this_program_does_not_exist=1; - #endif +