rename rectVertices -> rectQuad
authorRalf Jung <post@ralfj.de>
Sun, 31 Mar 2013 14:40:48 +0000 (16:40 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 31 Mar 2013 14:40:48 +0000 (16:40 +0200)
gltest.cpp

index b9824a85395e3d5076cc9a531706a28c4006ee45..c66ab32c40efd5db2460da248ad8772e41672d75 100644 (file)
@@ -63,7 +63,7 @@ static double getTime()
        return tp.tv_sec + 1e-9 * tp.tv_nsec;
 }
 
-static void rectVertices(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+static void rectQuad(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 {
        glVertex2f(x1, y1);
        glVertex2f(x2, y1);
@@ -159,7 +159,7 @@ protected:
                        // clear manually
                        glBegin(GL_QUADS);
                        glColor3f(0.0f, 0.0f, 0.0f);
-                       rectVertices(0, 0, 1, 1);
+                       rectQuad(0, 0, 1, 1);
                        glEnd();
                }
                else {
@@ -169,7 +169,7 @@ protected:
                profilerTick(stateDraw);
                glBegin(GL_QUADS);
                glColor3f(0.8f, 1.0f, 0.75f);
-               rectVertices(boxPos, 0, boxPos+boxWidth, 1);
+               rectQuad(boxPos, 0, boxPos+boxWidth, 1);
                glEnd();
                usleep(sleep_time*1000);
                //////////////////////////////////////////////