Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_FreeGlut / INC_WIN / freeglut_ext.h
diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_ext.h b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_ext.h
new file mode 100755 (executable)
index 0000000..af91879
--- /dev/null
@@ -0,0 +1,236 @@
+#ifndef  __FREEGLUT_EXT_H__\r
+#define  __FREEGLUT_EXT_H__\r
+\r
+/*\r
+ * freeglut_ext.h\r
+ *\r
+ * The non-GLUT-compatible extensions to the freeglut library include file\r
+ *\r
+ * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.\r
+ * Written by Pawel W. Olszta, <olszta@sourceforge.net>\r
+ * Creation date: Thu Dec 2 1999\r
+ *\r
+ * Permission is hereby granted, free of charge, to any person obtaining a\r
+ * copy of this software and associated documentation files (the "Software"),\r
+ * to deal in the Software without restriction, including without limitation\r
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,\r
+ * and/or sell copies of the Software, and to permit persons to whom the\r
+ * Software is furnished to do so, subject to the following conditions:\r
+ *\r
+ * The above copyright notice and this permission notice shall be included\r
+ * in all copies or substantial portions of the Software.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL\r
+ * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+ */\r
+\r
+#ifdef __cplusplus\r
+    extern "C" {\r
+#endif\r
+\r
+/*\r
+ * Additional GLUT Key definitions for the Special key function\r
+ */\r
+#define GLUT_KEY_NUM_LOCK           0x006D\r
+#define GLUT_KEY_BEGIN              0x006E\r
+#define GLUT_KEY_DELETE             0x006F\r
+#define GLUT_KEY_SHIFT_L            0x0070\r
+#define GLUT_KEY_SHIFT_R            0x0071\r
+#define GLUT_KEY_CTRL_L             0x0072\r
+#define GLUT_KEY_CTRL_R             0x0073\r
+#define GLUT_KEY_ALT_L              0x0074\r
+#define GLUT_KEY_ALT_R              0x0075\r
+\r
+/*\r
+ * GLUT API Extension macro definitions -- behaviour when the user clicks on an "x" to close a window\r
+ */\r
+#define GLUT_ACTION_EXIT                         0\r
+#define GLUT_ACTION_GLUTMAINLOOP_RETURNS         1\r
+#define GLUT_ACTION_CONTINUE_EXECUTION           2\r
+\r
+/*\r
+ * Create a new rendering context when the user opens a new window?\r
+ */\r
+#define GLUT_CREATE_NEW_CONTEXT                  0\r
+#define GLUT_USE_CURRENT_CONTEXT                 1\r
+\r
+/*\r
+ * Direct/Indirect rendering context options (has meaning only in Unix/X11)\r
+ */\r
+#define GLUT_FORCE_INDIRECT_CONTEXT              0\r
+#define GLUT_ALLOW_DIRECT_CONTEXT                1\r
+#define GLUT_TRY_DIRECT_CONTEXT                  2\r
+#define GLUT_FORCE_DIRECT_CONTEXT                3\r
+\r
+/*\r
+ * GLUT API Extension macro definitions -- the glutGet parameters\r
+ */\r
+#define  GLUT_INIT_STATE                    0x007C\r
+\r
+#define  GLUT_ACTION_ON_WINDOW_CLOSE        0x01F9\r
+\r
+#define  GLUT_WINDOW_BORDER_WIDTH           0x01FA\r
+#define  GLUT_WINDOW_HEADER_HEIGHT          0x01FB\r
+\r
+#define  GLUT_VERSION                       0x01FC\r
+\r
+#define  GLUT_RENDERING_CONTEXT             0x01FD\r
+#define  GLUT_DIRECT_RENDERING              0x01FE\r
+\r
+#define  GLUT_FULL_SCREEN                   0x01FF\r
+\r
+/*\r
+ * New tokens for glutInitDisplayMode.\r
+ * Only one GLUT_AUXn bit may be used at a time.\r
+ * Value 0x0400 is defined in OpenGLUT.\r
+ */\r
+#define  GLUT_AUX                           0x1000\r
+\r
+#define  GLUT_AUX1                          0x1000\r
+#define  GLUT_AUX2                          0x2000\r
+#define  GLUT_AUX3                          0x4000\r
+#define  GLUT_AUX4                          0x8000\r
+\r
+/*\r
+ * Context-related flags, see freeglut_state.c\r
+ */\r
+#define  GLUT_INIT_MAJOR_VERSION            0x0200\r
+#define  GLUT_INIT_MINOR_VERSION            0x0201\r
+#define  GLUT_INIT_FLAGS                    0x0202\r
+#define  GLUT_INIT_PROFILE                  0x0203\r
+\r
+/*\r
+ * Flags for glutInitContextFlags, see freeglut_init.c\r
+ */\r
+#define  GLUT_DEBUG                         0x0001\r
+#define  GLUT_FORWARD_COMPATIBLE            0x0002\r
+\r
+\r
+/*\r
+ * Flags for glutInitContextProfile, see freeglut_init.c\r
+ */\r
+#define GLUT_CORE_PROFILE                   0x0001\r
+#define        GLUT_COMPATIBILITY_PROFILE          0x0002\r
+\r
+/*\r
+ * Process loop function, see freeglut_main.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutMainLoopEvent( void );\r
+FGAPI void    FGAPIENTRY glutLeaveMainLoop( void );\r
+FGAPI void    FGAPIENTRY glutExit         ( void );\r
+\r
+/*\r
+ * Window management functions, see freeglut_window.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutFullScreenToggle( void );\r
+FGAPI void    FGAPIENTRY glutLeaveFullScreen( void );\r
+\r
+/*\r
+ * Window-specific callback functions, see freeglut_callbacks.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) );\r
+FGAPI void    FGAPIENTRY glutCloseFunc( void (* callback)( void ) );\r
+FGAPI void    FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) );\r
+/* A. Donev: Also a destruction callback for menus */\r
+FGAPI void    FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) );\r
+\r
+/*\r
+ * State setting and retrieval functions, see freeglut_state.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutSetOption ( GLenum option_flag, int value );\r
+FGAPI int *   FGAPIENTRY glutGetModeValues(GLenum mode, int * size);\r
+/* A.Donev: User-data manipulation */\r
+FGAPI void*   FGAPIENTRY glutGetWindowData( void );\r
+FGAPI void    FGAPIENTRY glutSetWindowData(void* data);\r
+FGAPI void*   FGAPIENTRY glutGetMenuData( void );\r
+FGAPI void    FGAPIENTRY glutSetMenuData(void* data);\r
+\r
+/*\r
+ * Font stuff, see freeglut_font.c\r
+ */\r
+FGAPI int     FGAPIENTRY glutBitmapHeight( void* font );\r
+FGAPI GLfloat FGAPIENTRY glutStrokeHeight( void* font );\r
+FGAPI void    FGAPIENTRY glutBitmapString( void* font, const unsigned char *string );\r
+FGAPI void    FGAPIENTRY glutStrokeString( void* font, const unsigned char *string );\r
+\r
+/*\r
+ * Geometry functions, see freeglut_geometry.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutWireRhombicDodecahedron( void );\r
+FGAPI void    FGAPIENTRY glutSolidRhombicDodecahedron( void );\r
+FGAPI void    FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale );\r
+FGAPI void    FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale );\r
+FGAPI void    FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);\r
+FGAPI void    FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);\r
+\r
+/*\r
+ * Extension functions, see freeglut_ext.c\r
+ */\r
+typedef void (*GLUTproc)();\r
+FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName );\r
+\r
+/*\r
+ * Multi-touch/multi-pointer extensions\r
+ */\r
+\r
+#define GLUT_HAS_MULTI 1\r
+\r
+FGAPI void FGAPIENTRY glutMultiEntryFunc( void (* callback)( int, int ) );\r
+FGAPI void FGAPIENTRY glutMultiButtonFunc( void (* callback)( int, int, int, int, int ) );\r
+FGAPI void FGAPIENTRY glutMultiMotionFunc( void (* callback)( int, int, int ) );\r
+FGAPI void FGAPIENTRY glutMultiPassiveFunc( void (* callback)( int, int, int ) );\r
+\r
+/*\r
+ * Joystick functions, see freeglut_joystick.c\r
+ */\r
+/* USE OF THESE FUNCTIONS IS DEPRECATED !!!!! */\r
+/* If you have a serious need for these functions in your application, please either\r
+ * contact the "freeglut" developer community at freeglut-developer@lists.sourceforge.net,\r
+ * switch to the OpenGLUT library, or else port your joystick functionality over to PLIB's\r
+ * "js" library.\r
+ */\r
+int     glutJoystickGetNumAxes( int ident );\r
+int     glutJoystickGetNumButtons( int ident );\r
+int     glutJoystickNotWorking( int ident );\r
+float   glutJoystickGetDeadBand( int ident, int axis );\r
+void    glutJoystickSetDeadBand( int ident, int axis, float db );\r
+float   glutJoystickGetSaturation( int ident, int axis );\r
+void    glutJoystickSetSaturation( int ident, int axis, float st );\r
+void    glutJoystickSetMinRange( int ident, float *axes );\r
+void    glutJoystickSetMaxRange( int ident, float *axes );\r
+void    glutJoystickSetCenter( int ident, float *axes );\r
+void    glutJoystickGetMinRange( int ident, float *axes );\r
+void    glutJoystickGetMaxRange( int ident, float *axes );\r
+void    glutJoystickGetCenter( int ident, float *axes );\r
+\r
+/*\r
+ * Initialization functions, see freeglut_init.c\r
+ */\r
+FGAPI void    FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion );\r
+FGAPI void    FGAPIENTRY glutInitContextFlags( int flags );\r
+FGAPI void    FGAPIENTRY glutInitContextProfile( int profile );\r
+\r
+/* to get the typedef for va_list */\r
+#include <stdarg.h>\r
+\r
+FGAPI void    FGAPIENTRY glutInitErrorFunc( void (* vError)( const char *fmt, va_list ap ) );\r
+FGAPI void    FGAPIENTRY glutInitWarningFunc( void (* vWarning)( const char *fmt, va_list ap ) );\r
+\r
+/*\r
+ * GLUT API macro definitions -- the display mode definitions\r
+ */\r
+#define  GLUT_CAPTIONLESS                   0x0400\r
+#define  GLUT_BORDERLESS                    0x0800\r
+#define  GLUT_SRGB                          0x1000\r
+\r
+#ifdef __cplusplus\r
+    }\r
+#endif\r
+\r
+/*** END OF FILE ***/\r
+\r
+#endif /* __FREEGLUT_EXT_H__ */\r