#pragma once /* creates a window with a bound GL context */ int glutCreateWindow(const char *title); /* invoked after a glutPostRedisplay */ void glutDisplayFunc( void (*callback)(void)); void glutInit( char **devPaths, int count); /*initializes a */ void glutInitWindowPosition( int x, int y); void glutInitWindowSize( int width, int height ); /* removed bc. from the school projects see /CGI/SHADING/packages/nupengl.core.0.1.0.1/build/native/include/GL void glutInitContextVersion(4, 0); void glutInitContextProfile(GLUT_COMPATIBILITY_PROFILE); void glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); */ /* invokes CB after each keypress, passing keycode and mouse cords (buffered) */ void glutKeyboardFunc( void ( *callback) (unsigned char key, int x, int y)); /*starts any timer and then loops waiting for postRedisplay() */ void glutMainLoop(); /* passes to CB the xy coord relative to the screen */ void glutPassiveMotionFunc( void ( *callback) (int x, int y) ); /* issue a call to glutDisplayCB glutKeyboardFunc glutPassiveMotionFunc */ void glutPostRedisplay(); //glutSetCursor(GLUT_CURSOR_NONE); void glutSwapBuffers(); /* waits TIME and then calls CB passing VAL as argument */ void glutTimerFunc( int time, void ( *callback)(int), int value); /* forces mouse position to SCR_X SCR_Y */ void glutWarpPointer( int x, int y);