pike.git / lib / modules / GLU.pmod

version» Context lines:

pike.git/lib/modules/GLU.pmod:1:   /* -  * $Id: GLU.pmod,v 1.14 2004/04/16 15:43:01 nilsson Exp $ +  * $Id: GLU.pmod,v 1.15 2008/04/04 19:11:11 grubba 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
pike.git/lib/modules/GLU.pmod:42:   //! @code   //! Math.Matrix eye = Math.Matrix( ({ eyex, eyey, eyez }) );   //! @endcode   //!   //! @seealso   //! @[GL.glFrustum], @[gluPerspective]   void gluLookAt(float|object eye,float|object center,float|object up,    float ... old_api)   {    Math.Matrix x,y,z; -  float mag; +        if (!objectp(eye))    {    eye=Math.Matrix( ({eye,center,up }) );    center=Math.Matrix( old_api[..2] );    up=Math.Matrix( old_api[3..5] );    }       /* Make rotation matrix */