i want to redispaly the house at runtime according to changing in my text file by pressing r or R BUT WHEN I build it it gives me error error C2065: 'Keyboard' : undeclared identifier
Do this for all your functions except main. This way your program will not depend on position of your function body and you will know what functions are in the file, without look to the whole file.
thanks my program runs but i want to redraw it during run time when i press r or R ,but when i change my points in my text file during runtime it redraws it but without pressing r please solve my problem
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
1) the draw() function is called whenever a glutPostResdisplay() is
generated (either explicitly by your code or by the system).
2) For example, placing a another window in front of the glut graphics
window and moving it around will generate a redraw.
3) you should not open the data file in your data file. You should read
the data into some type of container (vector, list, etc.) When you
hit the R key, you should re-read the data and post a glutPostRedisplay
please tell me what changes i do in my program to get the required result please write a code for it.
is it not possible to get the required result with this code?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.