glColor4f(color.R, color.G, color.B,
(GLfloat) view->defaultnodealpha);
- glVertex3f((GLfloat) x0, (GLfloat) y0, (GLfloat) 0);
+ glVertex3f((GLfloat) x0, (GLfloat) y0, 0.0f);
}
}
}
if (get_temp_coords(t, level, n, &x, &y)) {
- glVertex3f((GLfloat) x0, (GLfloat) y0,
- (GLfloat) 0);
- glVertex3f((GLfloat) x, (GLfloat) y, (GLfloat) 0);
+ glVertex3f((GLfloat) x0, (GLfloat) y0, 0.0f);
+ glVertex3f((GLfloat) x, (GLfloat) y, 0.0f);
} else
{
int levell, nodee;
continue;
- glVertex3f((GLfloat) x0, (GLfloat) y0,
- (GLfloat) 0);
- glVertex3f((GLfloat) x, (GLfloat) y,
- (GLfloat) 0);
+ glVertex3f((GLfloat) x0, (GLfloat) y0, 0.0f);
+ glVertex3f((GLfloat) x, (GLfloat) y, 0.0f);
}
}
}
#endif
-#define GLCOMPSET_PANEL_COLOR_R (GLfloat)0.16
-#define GLCOMPSET_PANEL_COLOR_G (GLfloat)0.44
-#define GLCOMPSET_PANEL_COLOR_B (GLfloat)0.87
-#define GLCOMPSET_PANEL_COLOR_ALPHA (GLfloat)0.5
-#define GLCOMPSET_PANEL_SHADOW_COLOR_R (GLfloat)0
-#define GLCOMPSET_PANEL_SHADOW_COLOR_G (GLfloat)0
-#define GLCOMPSET_PANEL_SHADOW_COLOR_B (GLfloat)0
-#define GLCOMPSET_PANEL_SHADOW_COLOR_A (GLfloat)0.3
-#define GLCOMPSET_PANEL_SHADOW_WIDTH (GLfloat)4
-
-#define GLCOMPSET_BUTTON_COLOR_R (GLfloat)0
-#define GLCOMPSET_BUTTON_COLOR_G (GLfloat)1
-#define GLCOMPSET_BUTTON_COLOR_B (GLfloat)0.3
-#define GLCOMPSET_BUTTON_COLOR_ALPHA (GLfloat)0.6
-#define GLCOMPSET_BUTTON_THICKNESS (GLfloat)3
-#define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS (GLfloat)1.7
-#define GLCOMPSET_FONT_SIZE (GLfloat)14
-
-#define GLCOMPSET_BUTTON_FONT_COLOR_R (GLfloat)0
-#define GLCOMPSET_BUTTON_FONT_COLOR_G (GLfloat)0
-#define GLCOMPSET_BUTTON_FONT_COLOR_B (GLfloat)0
-#define GLCOMPSET_BUTTON_FONT_COLOR_ALPHA (GLfloat)1
-
-#define GLCOMPSET_FONT_SIZE_FACTOR (GLfloat)0.7
-
-#define GLCOMPSET_LABEL_COLOR_R (GLfloat)0
-#define GLCOMPSET_LABEL_COLOR_G (GLfloat)0
-#define GLCOMPSET_LABEL_COLOR_B (GLfloat)0
-#define GLCOMPSET_LABEL_COLOR_ALPHA (GLfloat)1
-
-#define GLCOMPSET_FONT_COLOR_R (GLfloat)0
-#define GLCOMPSET_FONT_COLOR_G (GLfloat)0
-#define GLCOMPSET_FONT_COLOR_B (GLfloat)0
-#define GLCOMPSET_FONT_COLOR_ALPHA (GLfloat)1
+#define GLCOMPSET_PANEL_COLOR_R 0.16f
+#define GLCOMPSET_PANEL_COLOR_G 0.44f
+#define GLCOMPSET_PANEL_COLOR_B 0.87f
+#define GLCOMPSET_PANEL_COLOR_ALPHA 0.5f
+#define GLCOMPSET_PANEL_SHADOW_COLOR_R 0.0f
+#define GLCOMPSET_PANEL_SHADOW_COLOR_G 0.0f
+#define GLCOMPSET_PANEL_SHADOW_COLOR_B 0.0f
+#define GLCOMPSET_PANEL_SHADOW_COLOR_A 0.3f
+#define GLCOMPSET_PANEL_SHADOW_WIDTH 4.0f
+
+#define GLCOMPSET_BUTTON_COLOR_R 0.0f
+#define GLCOMPSET_BUTTON_COLOR_G 1.0f
+#define GLCOMPSET_BUTTON_COLOR_B 0.3f
+#define GLCOMPSET_BUTTON_COLOR_ALPHA 0.6f
+#define GLCOMPSET_BUTTON_THICKNESS 3.0f
+#define GLCOMPSET_BUTTON_BEVEL_BRIGHTNESS 1.7f
+#define GLCOMPSET_FONT_SIZE 14.0f
+
+#define GLCOMPSET_BUTTON_FONT_COLOR_R 0.0f
+#define GLCOMPSET_BUTTON_FONT_COLOR_G 0.0f
+#define GLCOMPSET_BUTTON_FONT_COLOR_B 0.0f
+#define GLCOMPSET_BUTTON_FONT_COLOR_ALPHA 1.0f
+
+#define GLCOMPSET_FONT_SIZE_FACTOR 0.7f
+
+#define GLCOMPSET_LABEL_COLOR_R 0.0f
+#define GLCOMPSET_LABEL_COLOR_G 0.0f
+#define GLCOMPSET_LABEL_COLOR_B 0.0f
+#define GLCOMPSET_LABEL_COLOR_ALPHA 1.0f
+
+#define GLCOMPSET_FONT_COLOR_R 0.0f
+#define GLCOMPSET_FONT_COLOR_G 0.0f
+#define GLCOMPSET_FONT_COLOR_B 0.0f
+#define GLCOMPSET_FONT_COLOR_ALPHA 1.0f
#define GLCOMPSET_FONT_DESC "Times Italic"
#define GL_FONTOPTIMIZE 1
#define DEFAULT_GLUT_FONT GLUT_BITMAP_HELVETICA_12
-#define GLCOMPSET_BORDERWIDTH (GLfloat)2
-#define GLCOMPSET_PANEL_BORDERWIDTH (GLfloat)3
-#define GLCOMPSET_BUTTON_BEVEL (GLfloat)5
-#define GLCOMPSET_BEVEL_DIFF (GLfloat)0.001
-#define GLCOMPSET_DEFAULT_PAD (GLfloat)3
-#define GLCOMP_DEFAULT_WIDTH (GLfloat)10
-#define GLCOMP_DEFAULT_HEIGHT (GLfloat)10
+#define GLCOMPSET_BORDERWIDTH 2.0f
+#define GLCOMPSET_PANEL_BORDERWIDTH 3.0f
+#define GLCOMPSET_BUTTON_BEVEL 5.0f
+#define GLCOMPSET_BEVEL_DIFF 0.001f
+#define GLCOMPSET_DEFAULT_PAD 3.0f
+#define GLCOMP_DEFAULT_WIDTH 10.0f
+#define GLCOMP_DEFAULT_HEIGHT 10.0f