remove some visual warning

This commit is contained in:
Joachim Schoeberl 2009-07-26 13:54:15 +00:00
parent 5f28d09930
commit c685dd39bf
2 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,7 @@ void VisualSceneSTLMeshing :: DrawScene ()
if (showtrias) if (showtrias)
{ {
float mat_coll[] = { 0.2, 0.2, 0.2, 1 }; float mat_coll[] = { 0.2f, 0.2f, 0.2f, 1.f };
glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, mat_coll); glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, mat_coll);
glPolygonMode (GL_FRONT_AND_BACK, GL_LINE); glPolygonMode (GL_FRONT_AND_BACK, GL_LINE);

View File

@ -1981,7 +1981,7 @@ namespace netgen
glEnable(GL_MAP2_VERTEX_3); glEnable(GL_MAP2_VERTEX_3);
glEnable(GL_AUTO_NORMAL); glEnable(GL_AUTO_NORMAL);
glMapGrid2f(hoplotn, 0.0, 0.9999, hoplotn, 0.0, 1.0); glMapGrid2f(hoplotn, 0.0, 0.9999f, hoplotn, 0.0, 1.0);
glEvalMesh2(GL_FILL, 0, hoplotn, 0, hoplotn); glEvalMesh2(GL_FILL, 0, hoplotn, 0, hoplotn);
glDisable (GL_AUTO_NORMAL); glDisable (GL_AUTO_NORMAL);
@ -2123,7 +2123,7 @@ namespace netgen
glEnable(GL_MAP2_VERTEX_3); glEnable(GL_MAP2_VERTEX_3);
glEnable(GL_AUTO_NORMAL); glEnable(GL_AUTO_NORMAL);
glMapGrid2f(8, 0.0, 0.999, 8, 0.0, 1.0); glMapGrid2f(8, 0.0, 0.999f, 8, 0.0, 1.0);
glEvalMesh2(GL_FILL, 0, 8, 0, 8); glEvalMesh2(GL_FILL, 0, 8, 0, 8);
glDisable (GL_AUTO_NORMAL); glDisable (GL_AUTO_NORMAL);
@ -2657,7 +2657,7 @@ namespace netgen
glEnable(GL_MAP2_VERTEX_3); glEnable(GL_MAP2_VERTEX_3);
glEnable(GL_AUTO_NORMAL); glEnable(GL_AUTO_NORMAL);
glMapGrid2f(8, 0.0, 0.999, 8, 0.0, 1.0); glMapGrid2f(8, 0.0, 0.999f, 8, 0.0, 1.0);
glEvalMesh2(GL_FILL, 0, 8, 0, 8); glEvalMesh2(GL_FILL, 0, 8, 0, 8);
glDisable (GL_AUTO_NORMAL); glDisable (GL_AUTO_NORMAL);