DEADSOFTWARE

844876613fcc41d24700677c9c4eac7a9808f6aa
[nanogl.git] / GL / glu.h
1 /***************************************************************************
2 glu_rip.h - description
4 A few convenience routines ripped from MesaGL
5 ***************************************************************************/
7 #ifndef _GLU_RIP_H_
8 #define _GLU_RIP_H_
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 #include <GL/gl.h>
16 #include <malloc.h>
17 #include <math.h>
19 #ifndef M_PI
20 #define M_PI 3.14159265358979323846
21 #endif
24 void gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
25 GLdouble centerx, GLdouble centery, GLdouble centerz,
26 GLdouble upx, GLdouble upy, GLdouble upz );
28 void gluPerspective( GLdouble fovy, GLdouble aspect,
29 GLdouble zNear, GLdouble zFar );
31 GLint gluScaleImage( GLenum format,
32 GLint widthin, GLint heightin,
33 GLenum typein, const void *datain,
34 GLint widthout, GLint heightout,
35 GLenum typeout, void *dataout );
37 GLint gluBuild2DMipmaps( GLenum target, GLint components,
38 GLint width, GLint height, GLenum format,
39 GLenum type, const void *data );
41 #ifdef __cplusplus
42 }
43 #endif
45 #endif