I\'m using OpenGl to animate a graph that looks something like this:
Here\'s the
You need to sample the function you want to plot.
glBegin(GL_LINE_STRIP); glVertex2f(0f, 0f); for (float x = 1f; x < 100f; x += 1f) glVertex2f(x, randVarGen()); glVertex2f(100f, 0f); glEnd();