API Function |
Comments
/ Limitations |
int glutCreateWindow (char *name); | Only one window can be created for the application |
void glutDestroyWindow (int win); |
|
void glutDisplayFunc (int win); |
|
void glutEntryFunc (void (*func)(int
state)); |
|
void glutFullScreen (void); |
|
int glutGet (GLenum state
); |
'state' can be GLUT_WINDOW_X,
GLUT_WINDOW_Y, GLUT_WINDOW_WIDTH, GLUT_WINDOW_HEIGHT, GLUT_WINDOW_DEPTH_SIZE,
GLUT_WINDOW_PARENT GLUT_WINDOW_NUM_CHILDREN, GLUT_SCREEN_WIDTH, GLUT_SCREEN_HEIGHT, GLUT_SCREEN_WIDTH_MM, GLUT_SCREEN_HEIGHT_MM, GLUT_INIT_WINDOW_X GLUT_INIT_WINDOW_Y, GLUT_INIT_WINDOW_WIDTH, GLUT_INIT_WINDOW_HEIGHT, GLUT_ELAPSED_TIME |
int glutGetWindow (void); |
|
void glutHideWindow (void); |
|
void glutIdleFunc (void (*func)()); |
|
void glutInit (int *argcp, char
**argv); |
|
void glutInitDisplayMode (unsigned
int mode); |
Ignored. The window defaults to single buffer
RGB display. |
void glutInitWindowPosition (int
width, int height); |
|
void glutInitWindowSize (int width,
int height); |
|
void glutKeyboardFunc (void (*func)(unsigned
char key, int x, int y)); |
|
void glutKeyboardUpFunc (void (*func)(unsigned
char key, int x, int y)); |
|
void glutMainLoop (void); |
|
void glutMotionFunc (void (*func)(int x, int y)); | |
void glutMouseFunc (void (*func)(int
button, int state, int x, int y)); |
|
void glutPassiveMotionFunc (void (*func)(int
x, int y)); |
|
void glutPositionWindow (int x, int
y); |
|
void glutPostRedisplay (void); |
|
void glutReshapeFunc (void (*func)(int
width, int height)); |
|
void glutReshapeWindow (int width,
int height); |
|
void glutSetWindow (int win); |
|
void glutShowWindow (void); |
|
void glutSwapBuffers (void); |
Ignored, since the display is single-buffered. |