Drawing time instead of numbers in opengl
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have drawn a graph where at the moment the X points for the bars (drawn using boxes) is draw using numbers, but I now need to draw it using time. Im drawing boxes using a class. It is written in C# opengl. public void DrawBox(float p_X1, float p_X2, float p_Y1, float p_Y2, float p_R, float p_G, float p_B) { X1 = p_X1; X2 = p_X2; Y1 = p_Y1; Y2 = p_Y2; R = p_R; G = p_G; B = p_B; //Take the values passed in by the constructor Gl.glBegin(Gl.GL_POLYGON); Gl.glColor3f(R, G, B); Gl.glVertex2f(X1, Y1); Gl.glVertex2f(X2, Y1); Gl.glVertex2f(X2, Y2); Gl.glVertex2f(X1, Y2); Gl.glEnd(); } Thanks