home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vrml2gl.zip
/
LIB
/
GLUTILS.H
< prev
Wrap
Text File
|
1997-02-06
|
1KB
|
32 lines
/*===========================================================================*/
#ifndef _GLMATHUTILS_INC
#define _GLMATHUTILS_INC
#include <GL/gl.h>
#include <math.h>
/*=========================================================================*/
/* Magic defines. */
/*=========================================================================*/
#ifndef PIE
#define PIE 3.141592654
#endif
#ifndef TWOPIE
#define TWOPIE 6.283185307
#endif
#ifndef RAD
#define RAD 0.017453292
#endif
/*=========================================================================*/
/* Function prototyping. */
/*=========================================================================*/
void glMathGetNormal2fv( float v[3][3], float out[3] );
void glMathGetNormalfv3f( float v1[3], float v2[3], float v3[3], float out[3] );
void glMathNormalizefv( float vector[3] );
float glMathGetFovy2f( float size, float distance );
/*========================================================================*/
/* Global variables. */
/*========================================================================*/
#endif
/*===========================================================================*/