I am trying to implement an up arrow with GLUT and this only causes the image to shake when that key is pressed. I was wondering if someone could tell me if my approach is ok? Or, thoughts on what could be wrong?
Here is what I have:
In processSpecialKeys routine:
where up_key_pressed is a boolean (global int).
In update routine:
In display routine:
glRotatef(180, 1.0, 0.0, 0.0);
glRotatef(-90, 0.0, 0.0, 1.0);
glTranslatef(trans_x, trans_y, 0);
for (i=0; i<num_of_islands; i++)
where trans_y is initially set to be a value that will place the vertical center of the land/mland at 0.
Thanks very much.