daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void keyboard(unsigned char key, int x, int y)
  2. {
  3.     switch (key) {
  4.         case 27:        // tecla de escape termina o programa
  5.             exit(0);
  6.             break;
  7.         case 97:{ // a
  8.             light0x += incLuz;
  9.             break;
  10.                 }
  11.         case 115: // s
  12.             light0y += incLuz;
  13.             break;
  14.         case 100: // d
  15.             light0z += incLuz;
  16.             break;
  17.         case 9: // Tab = Altera Inc
  18.             incLuz = incLuz*-1;
  19.             break;
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top