#define DEFAULTS "*delay: 10000 \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
+ "*geometry: 640x640 \n" \
"*count: " DEF_COUNT " \n" \
"*style: " DEF_STYLE " \n" \
"*speed: " DEF_SPEED " \n" \
int polys = 0;
int maxx = coords[0][countof(coords[0])-1][0];
int maxy = coords[0][countof(coords[0])-1][1];
- int x;
+ unsigned int x;
for (x = 1; x < countof(coords[0]); x++)
{
static GLfloat
bottle_radius_at (lavalite_configuration *bp, GLfloat z)
{
- GLfloat topz = -999, botz = -999, topr, botr;
+ GLfloat topz = -999, botz = -999, topr = 0, botr = 0;
lamp_geometry *slice;
GLfloat ratio;
mi->polygon_count = 0;
{
- double s = 1.0/bp->grid_size;
+ double s;
+ if (bp->grid_size == 0) bp->grid_size = 1; /* first time through */
+ s = 1.0/bp->grid_size;
+
glPushMatrix();
glTranslatef (-0.5, -0.5, 0);
glScalef (s, s, s);