source code to plot graph in GLUT?

can someone tell me the source code when i want to draw some graph in GLUT and VC++ by giving it some function f(x) along x-axis and y-axis? is there any short source code available?
i need it urgent . please help me.
i am looking forward to you people.

I don’t know where you can upload the code but you can use GL_LINE, maybe there is a sample on the opengl RedBook or Nate Robin’s exercices
http://www.google.com is your friend :slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.