diff --git a/src/c1/threePoints.cpp b/src/c1/threePoints.cpp index 6623ef4..366c0ad 100644 --- a/src/c1/threePoints.cpp +++ b/src/c1/threePoints.cpp @@ -6,6 +6,8 @@ #include #include +const float POINT_SIZE = 32.0f; + void render(){ glBegin(GL_TRIANGLES); @@ -29,6 +31,7 @@ void render(){ num=0.0f; speed=0.01f; } + glColor3f(num,num,num); glVertex3f(0.0f,0.0f,0.0f); @@ -60,7 +63,7 @@ int main(){ glEnable(GL_POINT_SMOOTH); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); - glPointSize(64.0f); + glPointSize(POINT_SIZE); while(glfwWindowShouldClose(window)==false){ render();