From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / glx / glschool_gl.h
1 /* glschool_gl.h, Copyright (c) 2005-2006 David C. Lambert <dcl@panix.com>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11 #ifndef __GLSCHOOL_GL_H__
12 #define __GLSCHOOL_GL_H__
13
14 #ifdef HAVE_CONFIG_H
15 # include "config.h"
16 #endif /* HAVE_CONFIG_H */
17
18 #ifdef HAVE_JWXYZ
19 # include "jwxyz.h"
20 # ifndef HAVE_JWZGLES
21 #  include <OpenGL/glu.h>
22 # endif
23 #else
24 # include <X11/Xlib.h>
25 # include <GL/gl.h>
26 # include <GL/glu.h>
27 #endif
28
29 #ifdef HAVE_ANDROID
30 #include <GLES/gl.h>
31 #endif
32
33 #ifdef HAVE_JWZGLES
34 # include "jwzgles.h"
35 #endif /* HAVE_JWZGLES */
36
37 #include "glschool_alg.h"
38
39 extern void glschool_initFog(void);
40 extern void glschool_initGLEnv(Bool);
41 extern void glschool_initLights(void);
42 extern void glschool_reshape(int, int);
43 extern void glschool_drawGoal(double *, GLuint);
44 extern void glschool_getColorVect(XColor *, int, double *);
45 extern int glschool_drawBoundingBox(BBox *, Bool);
46 extern int glschool_createBBoxList(BBox *, GLuint *, int);
47 extern void glschool_createDrawLists(BBox *, GLuint *, GLuint *, GLuint *, int *, int *, Bool);
48 extern void glschool_drawSchool(XColor *, School *, GLuint, GLuint, GLuint, int, Bool, Bool, 
49                        int, int, unsigned long *);
50
51 #endif /* __GLSCHOOL_GL_H__ */