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