PDA

View Full Version : Getting User Input



Aravind
03-06-2010, 10:41 AM
Hi all,

I want to get user input (some coordinate values) from console and use the user input values to display a circle at the particular coordinate.

Currently I tried to do this by using scanf() and some global variables as the coordinate values but the method crashed my program.

So was wondering if any of you guys could provide me some advice on how to go about doing this since this my first time with OpenGL and not really sure how the library works.

I am working on a Linux (Ubuntu 9.04) machine with gcc/g++ compiler and use GLUT for window management.


Thanks in advance.

Regards,

Aravind

deccer
03-06-2010, 10:43 AM
a good point to start with opengl is trying the nehe tutorials...