Hi,
i have a simple problem:
void processMouse (int button, int state, int x, int y)
{
if (x < 100) { glPushMatrix ();
glTranslatef (0.5,0.0,0.0);
glScalef (0.1,1.0,1.0);
glutSolidCube(1.0);
glPopMatrix ();}
}
nothing happens
i just want to draw this scaled cube if x is smaller than 100.
how does this work ?
greetings calavera