Main MRPT website > C++ reference for MRPT 1.5.3
freeglut_ext.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef __FREEGLUT_EXT_H__
10 #define __FREEGLUT_EXT_H__
11 
12 /*
13  * freeglut_ext.h
14  *
15  * The non-GLUT-compatible extensions to the freeglut library include file
16  *
17  * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
18  * Written by Pawel W. Olszta, <olszta@sourceforge.net>
19  * Creation date: Thu Dec 2 1999
20  *
21  * Permission is hereby granted, free of charge, to any person obtaining a
22  * copy of this software and associated documentation files (the "Software"),
23  * to deal in the Software without restriction, including without limitation
24  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
25  * and/or sell copies of the Software, and to permit persons to whom the
26  * Software is furnished to do so, subject to the following conditions:
27  *
28  * The above copyright notice and this permission notice shall be included
29  * in all copies or substantial portions of the Software.
30  *
31  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
32  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
34  * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
35  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
36  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37  */
38 
39 #ifdef __cplusplus
40  extern "C" {
41 #endif
42 
43 /*
44  * GLUT API Extension macro definitions -- behaviour when the user clicks on an "x" to close a window
45  */
46 #define GLUT_ACTION_EXIT 0
47 #define GLUT_ACTION_GLUTMAINLOOP_RETURNS 1
48 #define GLUT_ACTION_CONTINUE_EXECUTION 2
49 
50 /*
51  * Create a new rendering context when the user opens a new window?
52  */
53 #define GLUT_CREATE_NEW_CONTEXT 0
54 #define GLUT_USE_CURRENT_CONTEXT 1
55 
56 /*
57  * Direct/Indirect rendering context options (has meaning only in Unix/X11)
58  */
59 #define GLUT_FORCE_INDIRECT_CONTEXT 0
60 #define GLUT_ALLOW_DIRECT_CONTEXT 1
61 #define GLUT_TRY_DIRECT_CONTEXT 2
62 #define GLUT_FORCE_DIRECT_CONTEXT 3
63 
64 /*
65  * GLUT API Extension macro definitions -- the glutGet parameters
66  */
67 #define GLUT_ACTION_ON_WINDOW_CLOSE 0x01F9
68 
69 #define GLUT_WINDOW_BORDER_WIDTH 0x01FA
70 #define GLUT_WINDOW_HEADER_HEIGHT 0x01FB
71 
72 #define GLUT_VERSION 0x01FC
73 
74 #define GLUT_RENDERING_CONTEXT 0x01FD
75 #define GLUT_DIRECT_RENDERING 0x01FE
76 
77 /*
78  * New tokens for glutInitDisplayMode.
79  * Only one GLUT_AUXn bit may be used at a time.
80  * Value 0x0400 is defined in OpenGLUT.
81  */
82 #define GLUT_AUX1 0x1000
83 #define GLUT_AUX2 0x2000
84 #define GLUT_AUX3 0x4000
85 #define GLUT_AUX4 0x8000
86 
87 /*
88  * Process loop function, see freeglut_main.c
89  */
92 
93 /*
94  * Window-specific callback functions, see freeglut_callbacks.c
95  */
96 FGAPI void FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) );
97 FGAPI void FGAPIENTRY glutCloseFunc( void (* callback)( void ) );
98 FGAPI void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) );
99 /* A. Donev: Also a destruction callback for menus */
100 FGAPI void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) );
101 
102 /*
103  * State setting and retrieval functions, see freeglut_state.c
104  */
105 FGAPI void FGAPIENTRY glutSetOption ( GLenum option_flag, int value ) ;
106 /* A.Donev: User-data manipulation */
107 FGAPI void* FGAPIENTRY glutGetWindowData( void );
109 FGAPI void* FGAPIENTRY glutGetMenuData( void );
111 
112 /*
113  * Font stuff, see freeglut_font.c
114  */
115 FGAPI int FGAPIENTRY glutBitmapHeight( void* font );
116 FGAPI GLfloat FGAPIENTRY glutStrokeHeight( void* font );
117 FGAPI void FGAPIENTRY glutBitmapString( void* font, const unsigned char *string );
118 FGAPI void FGAPIENTRY glutStrokeString( void* font, const unsigned char *string );
119 
120 /*
121  * Geometry functions, see freeglut_geometry.c
122  */
125 FGAPI void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ) ;
126 FGAPI void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ) ;
127 FGAPI void FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);
128 FGAPI void FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks);
129 
130 /*
131  * Extension functions, see freeglut_ext.c
132  */
133 typedef void (*GLUTproc)();
134 FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName );
135 
136 
137 #ifdef __cplusplus
138  }
139 #endif
140 
141 /*** END OF FILE ***/
142 
143 #endif /* __FREEGLUT_EXT_H__ */
FGAPI void FGAPIENTRY glutSolidRhombicDodecahedron(void)
FGAPI void FGAPIENTRY glutLeaveMainLoop(void)
FGAPI void FGAPIENTRY glutWMCloseFunc(void(*callback)(void))
FGAPI void FGAPIENTRY glutWireSierpinskiSponge(int num_levels, GLdouble offset[3], GLdouble scale)
FGAPI void FGAPIENTRY glutSolidCylinder(GLdouble radius, GLdouble height, GLint slices, GLint stacks)
FGAPI void FGAPIENTRY glutMouseWheelFunc(void(*callback)(int, int, int, int))
FGAPI void FGAPIENTRY glutWireCylinder(GLdouble radius, GLdouble height, GLint slices, GLint stacks)
FGAPI void FGAPIENTRY glutSetWindowData(void *data)
FGAPI void FGAPIENTRY glutStrokeString(void *font, const unsigned char *string)
FGAPI void *FGAPIENTRY glutGetMenuData(void)
T value(details::expression_node< T > *n)
Definition: exprtk.hpp:12104
FGAPI void FGAPIENTRY glutSetMenuData(void *data)
FGAPI void FGAPIENTRY glutMenuDestroyFunc(void(*callback)(void))
FGAPI GLUTproc FGAPIENTRY glutGetProcAddress(const char *procName)
FGAPI void *FGAPIENTRY glutGetWindowData(void)
FGAPI void FGAPIENTRY glutSolidSierpinskiSponge(int num_levels, GLdouble offset[3], GLdouble scale)
static std::string data()
Definition: exprtk.hpp:37697
FGAPI void FGAPIENTRY glutMainLoopEvent(void)
FGAPI int FGAPIENTRY glutBitmapHeight(void *font)
void(* GLUTproc)()
Definition: freeglut_ext.h:133
FGAPI void FGAPIENTRY glutSetOption(GLenum option_flag, int value)
#define FGAPI
Definition: freeglut_std.h:114
FGAPI void FGAPIENTRY glutWireRhombicDodecahedron(void)
#define FGAPIENTRY
Definition: freeglut_std.h:115
FGAPI GLfloat FGAPIENTRY glutStrokeHeight(void *font)
FGAPI void FGAPIENTRY glutCloseFunc(void(*callback)(void))
FGAPI void FGAPIENTRY glutBitmapString(void *font, const unsigned char *string)



Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Sun Nov 26 00:44:48 UTC 2017