Hi there,
I am relatively new to openGL and would like some help getting started with what i am trying to do.
Basically in the language C i wish to create a very simple bar chart with the GLUT library functions. The chart will ned to be drawn from a variable who's values are seperated by commas.
e.g. the variable might be something like this:
graph = "10,20"
I'd need the Y axis to go up to the highest number and the x axis to cater for the amount of elements within the variable which are split up by commas.
Does anybody have a simple example of how to create a 2d graph in C using GLUT?
I know that there's many tutorials out there for drawing in openGL but one specifically for drawing graphs would be good.
If anybody can make a simple tutorial up or perhaps post a possible solution to what i have asked then that would be great. But as i say, i have a variable and i wish it's values separated by commas to be displayed in a graph. Each element from the split will be a bar in the graph and the labels for axis don't matter too much.
Again, just to mention, this is for C and not C++. Any good recommendations are apprechiated
Thanks



