static void reshape(int width, int height) {glViewport(0, 0, (GLsizei)width, (GLsizei)height); // Set our viewport to the size of our windowglMatrixMode(GL_PROJECTION); // Switch to the projection matrix so that we can manipulate how our scene is viewedglLoadIdentity(); // Reset the projection matrix to the identity matrix so that we don't get any artifacts (cleaning up)gluPerspective(60, (GLfloat)width / (GLfloat)height, 1.0, 100.0); // Set the Field of view angle (in degrees), the aspect ratio of our window, and the new and far planesglMatrixMode(GL_MODELVIEW); // Switch back to the model view matrix, so that we can start drawing shapes correctly}static void idle() {glutPostRedisplay();}static void timer(int value) {glutPostRedisplay();glutTimerFunc(1000/FPS, timer, 1);}

void tipkovnica (unsigned char tipka, int x, int y) {tip[tipka] = true; // Set the state of the current key to pressed}

void tipkovnica2 (unsigned char tipka, int x, int y) {tip[tipka] = false; // Set the state of the current key to not pressed}void pritisni (void) {