DEADSOFTWARE

Reformat with clang-format. Nothing useful
[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
23 void gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
24 GLdouble centerx, GLdouble centery, GLdouble centerz,
25 GLdouble upx, GLdouble upy, GLdouble upz );
27 void gluPerspective( GLdouble fovy, GLdouble aspect,
28 GLdouble zNear, GLdouble zFar );
30 GLint gluScaleImage( GLenum format,
31 GLint widthin, GLint heightin,
32 GLenum typein, const void *datain,
33 GLint widthout, GLint heightout,
34 GLenum typeout, void *dataout );
36 GLint gluBuild2DMipmaps( GLenum target, GLint components,
37 GLint width, GLint height, GLenum format,
38 GLenum type, const void *data );
40 #ifdef __cplusplus
41 }
42 #endif
44 #endif