home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vrml2gl.zip / LIB / GLUTILS.H < prev   
Text File  |  1997-02-06  |  1KB  |  32 lines

  1. /*===========================================================================*/
  2. #ifndef _GLMATHUTILS_INC
  3.    #define _GLMATHUTILS_INC
  4.  
  5.    #include <GL/gl.h>
  6.    #include <math.h>
  7.    /*=========================================================================*/
  8.    /* Magic defines.                                                          */
  9.    /*=========================================================================*/
  10.    #ifndef PIE
  11.       #define PIE    3.141592654
  12.    #endif
  13.    #ifndef TWOPIE
  14.       #define  TWOPIE            6.283185307
  15.    #endif
  16.    #ifndef RAD
  17.       #define RAD    0.017453292
  18.    #endif
  19.    /*=========================================================================*/
  20.    /* Function prototyping.                                                   */
  21.    /*=========================================================================*/
  22.    void     glMathGetNormal2fv( float v[3][3], float out[3] );
  23.    void     glMathGetNormalfv3f( float v1[3], float v2[3], float v3[3], float out[3] );
  24.    void     glMathNormalizefv( float vector[3] );
  25.    float    glMathGetFovy2f( float size, float distance );
  26.    /*========================================================================*/
  27.    /* Global variables.                                                      */
  28.    /*========================================================================*/
  29.  
  30. #endif
  31. /*===========================================================================*/
  32.