X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fbubble3d.h;h=92ccbbde064f8f797d39cb0f8935b855bf0af9b9;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=95af754bcef38dfebfe829067e2c6ebea6427e2b;hpb=3f438031d610c7e15fd33876a879b97e290e05fb;p=xscreensaver diff --git a/hacks/glx/bubble3d.h b/hacks/glx/bubble3d.h index 95af754b..92ccbbde 100644 --- a/hacks/glx/bubble3d.h +++ b/hacks/glx/bubble3d.h @@ -3,7 +3,9 @@ #ifndef __bubbles3d_h__ #define __bubbles3d_h__ -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ #ifdef STANDALONE # include @@ -12,8 +14,14 @@ # include "xlock.h" /* from the xlockmore distribution */ #endif /* !STANDALONE */ -#include -#include +#if !defined(HAVE_JWXYZ) && !defined(HAVE_JWZGLES) +# include +# include +#endif + +#ifdef HAVE_JWZGLES +# include "jwzgles.h" +#endif /* HAVE_JWZGLES */ /* Static configuration. */ #define GLB_SLOW_GL 0 /* Set this if you have a slow GL @@ -57,7 +65,6 @@ struct glb_config { */ GLfloat screen_bottom; /* Bottom of screen. */ GLfloat screen_top; /* Top of screen. */ - GLfloat bg_colour[4]; /* Background colour. */ GLfloat bubble_colour[4]; /* Colour of the bubbles. */ int polygon_count; @@ -68,19 +75,21 @@ extern struct glb_config glb_config; #define glb_drand() ((double)LRAND() / (double)MAXRAND) /*-- From glb_sphere.c. --*/ +typedef struct glb_data glb_data; typedef GLfloat glb_vertex[3]; typedef GLuint glb_triangle[3]; -extern void glb_sphere_init(void); -extern glb_vertex *glb_sphere_get_vertices(int *nr_vertices); -extern glb_triangle *glb_sphere_get_triangles(int *nr_triangles); -extern void glb_sphere_end(void); +extern glb_data * glb_sphere_init(void); +extern glb_vertex *glb_sphere_get_vertices(glb_data *, int *nr_vertices); +extern glb_triangle *glb_sphere_get_triangles(glb_data *, int *nr_triangles); +extern void glb_sphere_end(glb_data *); /*-- From glb_bubble.c. --*/ -extern void *glb_bubble_new(GLfloat x, GLfloat y, GLfloat z, GLfloat scale, +extern void *glb_bubble_new(glb_data *d, + GLfloat x, GLfloat y, GLfloat z, GLfloat scale, GLfloat y_incr, GLfloat scale_incr); extern void glb_bubble_delete(void *); extern void glb_bubble_step(void *); -extern void glb_bubble_draw(void *); +extern void glb_bubble_draw(glb_data *d, void *); extern GLfloat glb_bubble_get_y(void *); /*-- From glb_draw.c. --*/