#include <GL/openglut.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Defines | |
| #define | MAX_AXES 3 |
Functions | |
| static void | resize (int width, int height) |
| Short Description. | |
| static void | drawButton (int button, int down) |
| Short Description. | |
| static void | display (void) |
| Short Description. | |
| static void | joystick (unsigned int buttons, int xaxis, int yaxis, int zaxis) |
| Short Description. | |
| static void | key (unsigned char key, int x, int y) |
| Short Description. | |
| int | main (int argc, char *argv[]) |
Variables | |
| static float | joystickAxis [MAX_AXES] |
| static int | joystickButtons |
| const GLfloat | light_ambient [] = { 0.0f, 0.0f, 0.0f, 1.0f } |
| const GLfloat | light_diffuse [] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| const GLfloat | light_specular [] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| const GLfloat | light_position [] = { 2.0f, 5.0f, 5.0f, 0.0f } |
| const GLfloat | mat_ambient [] = { 0.7f, 0.7f, 0.7f, 1.0f } |
| const GLfloat | mat_diffuse [] = { 0.8f, 0.8f, 0.8f, 1.0f } |
| const GLfloat | mat_specular [] = { 1.0f, 1.0f, 1.0f, 1.0f } |
| const GLfloat | high_shininess [] = { 100.0f } |
|
|
Definition at line 7 of file joy.c. Referenced by main(). |
|
|
Short Description. Long Description if necessary.
Definition at line 74 of file joy.c. References drawButton(), f, joystickAxis, and joystickButtons. |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 50 of file joy.c. Referenced by display(). |
|
||||||||||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 136 of file joy.c. References joystickAxis, and joystickButtons. |
|
||||||||||||||||
|
Short Description. Long Description if necessary.
|
|
||||||||||||
|
Definition at line 187 of file joy.c. References display(), high_shininess, i, joystick(), joystickAxis, joystickButtons, key(), light_ambient, light_diffuse, light_position, light_specular, mat_ambient, mat_diffuse, mat_specular, MAX_AXES, and resize(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
|
|
|
Definition at line 182 of file joy.c. Referenced by main(). |
|
|
Definition at line 9 of file joy.c. Referenced by display(), joystick(), and main(). |
|
|
Definition at line 10 of file joy.c. Referenced by display(), joystick(), and main(). |
|
|
Definition at line 174 of file joy.c. Referenced by main(). |
|
|
Definition at line 175 of file joy.c. Referenced by main(). |
|
|
Definition at line 177 of file joy.c. Referenced by main(). |
|
|
Definition at line 176 of file joy.c. Referenced by main(). |
|
|
Definition at line 179 of file joy.c. Referenced by main(). |
|
|
Definition at line 180 of file joy.c. Referenced by main(). |
|
|
Definition at line 181 of file joy.c. Referenced by main(). |
1.4.4