I have an problem considering
a simple replacemant of an rotation
with translation.
The rotation worked very vell
but the rotation seems to be dead ?!
since I can’t find any logical exponations it
might be that I am overlooking something.
The general kode is from red book so it is ok.
Here is portion that I changed:
glPushMatrix();
glTranslatef((GLfloat) move,0,0);
glutSolidCube (1.0);
glPopMatrix();
void keyboard (unsigned char key, int x, int y)
{
switch (key) {
case ‘s’: /* s key translira objekat */
move = move + .5 ;
glutPostRedisplay();
break;
Thank U in advance
maxmagnus