Logo Search packages:      
Sourcecode: taoframework version File versions  Download package

Tao::FreeGlut::Glut Class Reference

List of all members.


Detailed Description

FreeGLUT (OpenGL Utility Toolkit) binding for .NET, implementing FreeGlut 2.4.0.

Definition at line 40 of file Glut.cs.


Public Member Functions

delegate void ButtonBoxCallback (int button, int state)
 Callback (delegate) for use with glutButtonBoxFunc.
delegate void CloseCallback ()
 Callback (delegate for use with glutCloseFunc.
delegate void CreateMenuCallback (int val)
 Callback (delegate) for use with glutCreateMenu.
delegate void DialsCallback (int dial, int val)
 Callback (delegate) for use with glutDialsFunc.
delegate void DisplayCallback ()
 Callback (delegate) for use with glutDisplayFunc.
delegate void EntryCallback (int state)
 Callback (delegate) for use with glutEntryFunc.
static void glutAddMenuEntry (string name, int val)
 Adds a menu entry to the bottom of the current menu.
static void glutAddSubMenu (string name, int menu)
 Adds a sub-menu trigger to the bottom of the current menu.
static void glutAttachMenu (int button)
 Attaches a mouse button for the current window to the identifier of the current menu.
static void glutBitmapCharacter ([In] IntPtr font, int character)
 Renders a bitmap character using OpenGL.
static int glutBitmapHeight (IntPtr font)
 Returns the height of a given font, in pixels.
static int glutBitmapLength ([In] IntPtr font, string text)
 Returns the length of a bitmap font string.
static void glutBitmapString (IntPtr font, string str)
 Draw a string of bitmapped characters.
static int glutBitmapWidth ([In] IntPtr font, int character)
 Returns the width of a bitmap character.
static void glutChangeToMenuEntry (int entry, string name, int val)
 Changes the specified menu item in the current menu into a menu entry.
static void glutChangeToSubMenu (int entry, string name, int menu)
 Changes the specified menu item in the current menu into a sub-menu trigger.
static void glutCopyColormap (int win)
 Copies the logical colormap for the layer in use from a specified window to the current window.
static int glutCreateSubWindow (int win, int x, int y, int width, int height)
 Creates a subwindow.
static int glutCreateWindow (string name)
 Creates a top-level window.
static void glutDestroyMenu (int menu)
 Destroys the specified menu.
static void glutDestroyWindow (int win)
 Destroys the specified window.
static void glutDetachMenu (int button)
 Detaches an attached mouse button from the current window.
static int glutDeviceGet (int info)
 Retrieves GLUT device information represented by integers.
static int glutEnterGameMode ()
 Enters GLUT's game mode.
static void glutEstablishOverlay ()
 Establishes an overlay (if possible) for the current window.
static int glutExtensionSupported (string extension)
 Helps to easily determine whether a given OpenGL extension is supported.
static void glutForceJoystickFunc ()
 Forces current window's joystick callback to be called.
static void glutFullScreen ()
 Requests that the current window be made full screen.
static int glutGameModeGet (int mode)
 Retrieves GLUT device information represented by integers.
static void glutGameModeString (string str)
 Sets the game mode configuration via a string.
static int glutGet (int state)
 Retrieves simple GLUT state represented by integers.
static float glutGetColor (int cell, int component)
 Retrieves a red, green, or blue component for a given color index colormap entry for the layer in use's logical colormap for the current window.
static int glutGetMenu ()
 Returns the identifier of the current menu.
static IntPtr glutGetMenuData ()
 Rerieves user data from a menu.
static int glutGetModifiers ()
 Returns the modifier key state when certain callbacks were generated.
static IntPtr glutGetProcAddress (string procName)
 Determine if an procedure or extension is available.
static int glutGetWindow ()
 Returns the identifier of the current window.
static IntPtr glutGetWindowData ()
 Get the user data for the current window.
static void glutHideOverlay ()
 Hides the overlay of the current window.
static void glutHideWindow ()
 Changes the display status of the current window.
static void glutIconifyWindow ()
 Changes the display status of the current window.
static void glutIgnoreKeyRepeat (int ignore)
 Determines if auto repeat keystrokes are reported to the current window.
.Using this option is helpful
in detecting OpenGL run time
errors.</description ></item >
< item >< term > sync</term >
< description > Enable
synchronous X protocol
transactions.This option makes
it easier to track down
potential X protocol errors.
</description ></item ></list >
</para ></remarks >
< seealsocref="glutCreateWindow"/>
< seealsocref="glutInitWindowPosition"/>
< seealsocref="glutInitWindowSize"/>
< seealsocref="glutMainLoop"/>
*static void 
glutInit (ref int argcp, StringBuilder[] argv)
 Initializes the GLUT library.
static void glutInitDisplayMode (int mode)
 Sets the initial display mode.
static void glutInitDisplayString (string str)
 Sets the initial display mode via a string.
static void glutInitWindowPosition (int x, int y)
 Sets the initial window position.
static void glutInitWindowSize (int width, int height)
 Sets the initial window size.
static int glutLayerGet (int info)
 Retrieves GLUT state pertaining to the layers of the current window.
static void glutLeaveGameMode ()
 Leaves GLUT's game mode.
static void glutLeaveMainLoop ()
 Leaves the main loop.
static void glutMainLoop ()
 Enters the GLUT event processing loop.
static void glutMainLoopEvent ()
 Performs the main loop event and returns control.
static void glutPopWindow ()
 Changes the stacking order of the current window relative to its siblings.
static void glutPositionWindow (int x, int y)
 Requests a change to the position of the current window.
static void glutPostOverlayRedisplay ()
 Marks the overlay of the current window as needing to be redisplayed.
static void glutPostRedisplay ()
 Marks the current window as needing to be redisplayed.
static void glutPostWindowOverlayRedisplay (int win)
 Marks the overlay of the specified window as needing to be redisplayed.
static void glutPostWindowRedisplay (int win)
 Marks the specified window as needing to be redisplayed.
delegate void GLUTprocDelegate ()
static void glutPushWindow ()
 Changes the stacking order of the current window relative to its siblings.
static void glutRemoveMenuItem (int entry)
 Removes the specified menu item.
static void glutRemoveOverlay ()
 Removes the overlay (if one exists) from the current window.
.</para >< para > Calling< b >
glutReportErrors</b >
repeatedly in your program
can help isolate OpenGL errors
to the offending OpenGL
command.Remember that you can
use the< c > gldebug</c >
option to detect OpenGL
errors in any GLUT program.
</para ></remarks >
< seealsocref="glutCreateWindow"/>
< seealsocref="Gl.glGetError"/>
< seealsocref="glutInit()"/>
< seealsocref="glutInitDisplayMode"/>
*static void 
glutReportErrors ()
 Prints out OpenGL run-time errors.
static void glutReshapeWindow (int width, int height)
 Requests a change to the size of the current window.
static void glutSetColor (int cell, float red, float green, float blue)
 Sets the color of a colormap entry in the layer of use for the current window.
static void glutSetCursor (int cursor)
 Changes the cursor image of the current window.
static void glutSetIconTitle (string name)
 Changes the icon title of the current top-level window.
static void glutSetKeyRepeat (int repeatMode)
 Sets the key repeat mode for the window system.
static void glutSetMenu (int menu)
 Sets the current menu.
static void glutSetMenuData (IntPtr data)
 Stores user data in a menu.
static void glutSetOption (int optionFlag, int value)
 Sets simple GLUT state represented by integers.
static void glutSetupVideoResizing ()
 Unknown. Unable to locate definitive documentation on this method.
static void glutSetupWindowData (IntPtr data)
 Set the user data for the current window.
static void glutSetWindow (int win)
 Sets the current window.
static void glutSetWindowTitle (string name)
 Changes the window title of the current top-level window.
static void glutShowOverlay ()
 Shows the overlay of the current window.
static void glutShowWindow ()
 Changes the display status of the current window.
static void glutSolidCone (double baseRadius, double height, int slices, int stacks)
 Renders a solid cone.
static void glutSolidCube (double size)
 Renders a solid cube.
static void glutSolidCylinder (double radius, double height, int slices, int stacks)
 Draw a solid cylinder.
static void glutSolidDodecahedron ()
 Renders a solid dodecahedron (12-sided regular solid).
static void glutSolidIcosahedron ()
 Renders a solid icosahedron (20-sided regular solid).
static void glutSolidOctahedron ()
 Renders solid octahedron (8-sided regular solid).
static void glutSolidRhombicDodecahedron ()
 Draw a solid rhombic dodecahedron.
static void glutSolidSierpinskiSponge (int levels, double[] offset, double scale)
 Draw a solid Spierspinski's sponge.
static void glutSolidSphere (double radius, int slices, int stacks)
 Renders a solid sphere.
static void glutSolidTeapot (double size)
 Renders a solid teapot.
static void glutSolidTetrahedron ()
 Renders a solid tetrahedron (4-sided regular solid).
static void glutSolidTorus (double innerRadius, double outerRadius, int sides, int rings)
 Renders a solid torus (doughnut).
static void glutStopVideoResizing ()
 Unknown. Unable to locate definitive documentation on this method.
static void glutStrokeCharacter ([In] IntPtr font, int character)
 Renders a stroke character using OpenGL.
static float glutStrokeHeight (IntPtr font)
 Returns the height of a given font.
static int glutStrokeLength (IntPtr font, string text)
 Returns the length of a stroke font string.
static void glutStrokeString (IntPtr font, string str)
 Draw a string of stroked characters.
static int glutStrokeWidth ([In] IntPtr font, int character)
 Returns the width of a stroke character.
static void glutSwapBuffers ()
 Swaps the buffers of the current window if double buffered.
static void glutUseLayer (int layer)
 Changes the layer in use for the current window.
static void glutVideoPan (int x, int y, int width, int height)
 Unknown. Unable to locate definitive documentation on this method.
static void glutVideoResize (int x, int y, int width, int height)
 Unknown. Unable to locate definitive documentation on this method.
static int glutVideoResizeGet (int param)
 Retrieves GLUT video resize information represented by integers.
static void glutWarpPointer (int x, int y)
 Warps the pointer's location.
static void glutWireCone (double baseRadius, double height, int slices, int stacks)
 Renders a wireframe cone.
static void glutWireCube (double size)
 Renders a wireframe cube.
static void glutWireCylinder (double radius, double height, int slices, int stacks)
 Draw a wireframe cylinder.
static void glutWireDodecahedron ()
 Renders a wireframe dodecahedron (12-sided regular solid).
static void glutWireIcosahedron ()
 Renders a wireframe icosahedron (20-sided regular solid).
static void glutWireOctahedron ()
 Renders wireframe octahedron (8-sided regular solid).
static void glutWireRhombicDodecahedron ()
 Draw a wireframe rhombic dodecahedron.
static void glutWireSierpinskiSponge (int levels, double[] offset, double scale)
 Draw a wireframe Spierspinski's sponge.
static void glutWireSphere (double radius, int slices, int stacks)
 Renders a wireframe sphere.
static void glutWireTeapot (double size)
 Renders a wireframe teapot.
static void glutWireTetrahedron ()
 Renders a wireframe tetrahedron (4-sided regular solid).
static void glutWireTorus (double innerRadius, double outerRadius, int sides, int rings)
 Renders a wireframe torus (doughnut).
delegate void IdleCallback ()
 Callback (delegate) for use with glutIdleFunc.
delegate void JoystickCallback (int buttonMask, int x, int y, int z)
 Callback (delegate) for use with glutJoystickFunc.
delegate void KeyboardCallback (byte key, int x, int y)
 Callback (delegate) for use with glutKeyboardFunc.
delegate void KeyboardUpCallback (byte key, int x, int y)
 Callback (delegate) for use with glutKeyboardUpFunc.
delegate void MenuDestroyCallback ()
 Callback (delegate for use with glutMenuDestroyFunc.
delegate void MenuStateCallback (int state)
 Callback (delegate) for use with glutMenuStateFunc.
delegate void MenuStatusCallback (int status, int x, int y)
 Callback (delegate) for use with glutMenuStatusFunc.
delegate void MotionCallback (int x, int y)
 Callback (delegate) for use with glutMotionFunc.
delegate void MouseCallback (int button, int state, int x, int y)
 Callback (delegate) for use with glutMouseFunc.
delegate void MouseWheelCallback (int wheel, int direction, int x, int y)
 Callback (delegate for use with glutMouseWheelFunc.
delegate void OverlayDisplayCallback ()
 Callback (delegate) for use with glutOverlayDisplayFunc.
delegate void PassiveMotionCallback (int x, int y)
 Callback (delegate) for use with glutPassiveMotionFunc.
delegate void ReshapeCallback (int width, int height)
 Callback (delegate) for use with glutReshapeFunc.
delegate void SpaceballButtonCallback (int button, int state)
 Callback (delegate) for use with glutSpaceballButtonFunc.
delegate void SpaceballMotionCallback (int x, int y, int z)
 Callback (delegate) for use with glutSpaceballMotionFunc.
delegate void SpaceballRotateCallback (int x, int y, int z)
 Callback (delegate) for use with glutSpaceballRotateFunc.
delegate void SpecialCallback (int key, int x, int y)
 Callback (delegate) for use with glutSpecialFunc.
delegate void SpecialUpCallback (int key, int x, int y)
 Callback (delegate) for use with glutSpecialUpFunc.
delegate void TabletButtonCallback (int button, int state, int x, int y)
 Callback (delegate) for use with glutTabletButtonFunc.
delegate void TabletMotionCallback (int x, int y)
 Callback (delegate) for use with glutTabletMotionFunc.
delegate void TimerCallback (int val)
 Callback (delegate) for use with glutTimerFunc.
delegate void VisibilityCallback (int state)
 Callback (delegate) for use with glutVisibilityFunc.
delegate void WindowCloseCallback ()
 Callback (delegate for use with glutWMCloseFunc.
delegate void WindowStatusCallback (int state)
 Callback (delegate) for use with glutWindowStatusFunc.

Static Public Member Functions

static void glutButtonBoxFunc ([In] ButtonBoxCallback func)
 Sets the dial and button box button callback for the current window.
static void glutCloseFunc ([In] CloseCallback func)
 Sets the close callback.
static int glutCreateMenu ([In] CreateMenuCallback func)
 Creates a new pop-up menu.
static void glutDialsFunc ([In] DialsCallback func)
 Sets the dial and button box dials callback for the current window.
static void glutDisplayFunc ([In] DisplayCallback func)
 Sets the display callback for the current window.
static void glutEntryFunc ([In] EntryCallback func)
 Sets the mouse enter/leave callback for the current window.
static void glutIdleFunc ([In] IdleCallback func)
 Sets the global idle callback.
.Using this option is helpful
in detecting OpenGL run time
errors.</description ></item >
< item >< term > sync</term >
< description > Enable
synchronous X protocol
transactions.This option makes
it easier to track down
potential X protocol errors.
</description ></item ></list >
</para ></remarks >
< seealsocref="glutCreateWindow"/>
< seealsocref="glutInitWindowPosition"/>
< seealsocref="glutInitWindowSize"/>
< seealsocref="glutMainLoop"/>
*static void 
glutInit ()
 Initializes the GLUT library.
static void glutJoystickFunc ([In] JoystickCallback func, int pollInterval)
 Sets the joystick callback for the current window.
static void glutKeyboardFunc ([In] KeyboardCallback func)
 Sets the keyboard callback for the current window.
static void glutKeyboardUpFunc ([In] KeyboardUpCallback func)
 Sets the keyboard up (key release) callback for the current window.
static void glutMenuDestroyFunc ([In] MenuDestroyCallback func)
 Sets the menu destroy callback.
static void glutMenuStateFunc ([In] MenuStateCallback func)
 A deprecated version of the glutMenuStatusFunc routine.
static void glutMenuStatusFunc ([In] MenuStatusCallback func)
 Sets the global menu status callback.
static void glutMotionFunc ([In] MotionCallback func)
 Sets the motion callbacks for the current window.
static void glutMouseFunc ([In] MouseCallback func)
 Sets the mouse callback for the current window.
static void glutMouseWheelFunc ([In] MouseWheelCallback func)
 Sets the mouse wheel callback.
static void glutOverlayDisplayFunc ([In] OverlayDisplayCallback func)
 Sets the overlay display callback for the current window.
static void glutPassiveMotionFunc ([In] PassiveMotionCallback func)
 Sets the passive motion callbacks for the current window.
static void glutReshapeFunc ([In] ReshapeCallback func)
 Sets the reshape callback for the current window.
static void glutSpaceballButtonFunc ([In] SpaceballButtonCallback func)
 Sets the Spaceball button callback for the current window.
static void glutSpaceballMotionFunc ([In] SpaceballMotionCallback func)
 Sets the Spaceball motion callback for the current window.
static void glutSpaceballRotateFunc ([In] SpaceballRotateCallback func)
 Sets the Spaceball rotation callback for the current window.
static void glutSpecialFunc ([In] SpecialCallback func)
 Sets the special keyboard callback for the current window.
static void glutSpecialUpFunc ([In] SpecialUpCallback func)
 Sets the special keyboard up (key release) callback for the current window.
static void glutTabletButtonFunc ([In] TabletButtonCallback func)
 Sets the tablet button callback for the current window.
static void glutTabletMotionFunc ([In] TabletMotionCallback func)
 Sets the tablet motion callback for the current window.
static void glutTimerFunc (int msecs,[In] TimerCallback func, int val)
 Registers a timer callback to be triggered in a specified number of milliseconds.
static void glutVisibilityFunc ([In] VisibilityCallback func)
 Sets the visibility callback for the current window.
static void glutWindowStatusFunc ([In] WindowStatusCallback func)
 Sets the window status callback for the current window.
static void glutWMCloseFunc ([In] WindowCloseCallback func)
 Sets the window close callback for the current window.

Public Attributes

const int FREEGLUT = 1
 FreeGLUT API marker.
const int FREEGLUT_VERSION_2_0 = 1
 FreeGLUT API version marker.
const int GLUT_ACCUM = 4
 Bit mask to select a window with an accumulation buffer.
const int GLUT_ACTION_CONTINUE_EXECUTION = 2
 Continue execution on window close button click.
const int GLUT_ACTION_EXIT = 0
 Close window on window close button click.
const int GLUT_ACTION_GLUTMAINLOOP_RETURNS = 1
 Return from main loop on window close button click.
const int GLUT_ACTION_ON_WINDOW_CLOSE = 0x01F9
 Gets current action for window-close.
const int GLUT_ACTIVE_ALT = 4
 Set if the Alt modifier is active.
const int GLUT_ACTIVE_CTRL = 2
 Set if the Ctrl modifier is active.
const int GLUT_ACTIVE_SHIFT = 1
 Set if the Shift modifier or Caps Lock is active.
const int GLUT_ALLOW_DIRECT_CONTEXT = 1
 Direct/Indirect rendering context options (has meaning only in Unix/X11).
const int GLUT_ALPHA = 8
 Bit mask to select a window with an alpha component to the color buffer(s).
const int GLUT_API_VERSION = 4
 GLUT API revision.
const int GLUT_AUX1 = 0x1000
const int GLUT_AUX2 = 0x2000
const int GLUT_AUX3 = 0x4000
const int GLUT_AUX4 = 0x8000
const int GLUT_BLUE = 2
 Blue color component.
const int GLUT_CREATE_NEW_CONTEXT = 0
 Create a new context when user opens a new window.
const int GLUT_CURSOR_BOTTOM_LEFT_CORNER = 19
 Arrow pointing to bottom-left corner.
const int GLUT_CURSOR_BOTTOM_RIGHT_CORNER = 18
 Arrow pointing to bottom-right corner.
const int GLUT_CURSOR_BOTTOM_SIDE = 13
 Arrow pointing to bottom side.
const int GLUT_CURSOR_CROSSHAIR = 9
 Simple cross-hair.
const int GLUT_CURSOR_CYCLE = 5
 Arrows rotating in a circle.
const int GLUT_CURSOR_DESTROY = 3
 Skull and cross bones.
const int GLUT_CURSOR_FULL_CROSSHAIR = 102
 Full-screen cross-hair cursor (if possible, otherwise GLUT_CURSOR_CROSSHAIR.
const int GLUT_CURSOR_HELP = 4
 Question mark.
const int GLUT_CURSOR_INFO = 2
 Pointing hand.
const int GLUT_CURSOR_INHERIT = 100
 Use parent's cursor.
const int GLUT_CURSOR_LEFT_ARROW = 1
 Arrow pointing up and to the left.
const int GLUT_CURSOR_LEFT_RIGHT = 11
 Bi-directional pointing left and right.
const int GLUT_CURSOR_LEFT_SIDE = 14
 Arrow pointing to left side.
const int GLUT_CURSOR_NONE = 101
 Invisible cursor.
const int GLUT_CURSOR_RIGHT_ARROW = 0
 Arrow pointing up and to the right.
const int GLUT_CURSOR_RIGHT_SIDE = 15
 Arrow pointing to right side.
const int GLUT_CURSOR_SPRAY = 6
 Spray can.
const int GLUT_CURSOR_TEXT = 8
 Insertion point cursor for text.
const int GLUT_CURSOR_TOP_LEFT_CORNER = 16
 Arrow pointing to top-left corner.
const int GLUT_CURSOR_TOP_RIGHT_CORNER = 17
 Arrow pointing to top-right corner.
const int GLUT_CURSOR_TOP_SIDE = 12
 Arrow pointing to top side.
const int GLUT_CURSOR_UP_DOWN = 10
 Bi-directional pointing up and down.
const int GLUT_CURSOR_WAIT = 7
 Wrist watch.
const int GLUT_DEPTH = 16
 Bit mask to select a window with a depth buffer.
const int GLUT_DEVICE_IGNORE_KEY_REPEAT = 610
 Returns true if the current window's auto repeated keys are ignored. This state is controlled by glutIgnoreKeyRepeat.
const int GLUT_DEVICE_KEY_REPEAT = 611
 The window system's global key repeat state. Returns either GLUT_KEY_REPEAT_OFF, GLUT_KEY_REPEAT_ON, or GLUT_KEY_REPEAT_DEFAULT. This will not necessarily return the value last passed to glutSetKeyRepeat.
const int GLUT_DIRECT_RENDERING = 0x01FE
const int GLUT_DISPLAY_MODE_POSSIBLE = 400
 Whether the current display mode is supported or not.
const int GLUT_DOUBLE = 2
 Bit mask to select a double buffered window. This overrides GLUT_SINGLE if it is also specified.
const int GLUT_DOWN = 0
 Mouse button down.
const int GLUT_ELAPSED_TIME = 700
 Number of milliseconds since glutInit() called (or first call to glutGet(GLUT_ELAPSED_TIME)).
const int GLUT_ENTERED = 1
 Mouse pointer has entered the window.
const int GLUT_FORCE_DIRECT_CONTEXT = 3
 Direct/Indirect rendering context options (has meaning only in Unix/X11).
const int GLUT_FORCE_INDIRECT_CONTEXT = 0
 Direct/Indirect rendering context options (has meaning only in Unix/X11).
const int GLUT_FULLY_COVERED = 3
 The window is shown but no part of the window is visible.
const int GLUT_FULLY_RETAINED = 1
 No pixels belonging to the window are covered by other windows.
const int GLUT_GAME_MODE_ACTIVE = 0
 Non-zero if GLUT's game mode is active; zero if not active. Game mode is not active initially. Game mode becomes active when glutEnterGameMode is called. Game mode becomes inactive when glutLeaveGameMode is called.
const int GLUT_GAME_MODE_DISPLAY_CHANGED = 6
 Non-zero if entering game mode actually changed the display settings. If the game mode string is not possible or the display mode could not be changed for any other reason, zero is returned.
const int GLUT_GAME_MODE_HEIGHT = 3
 Height in pixels of the screen when game mode is activated.
const int GLUT_GAME_MODE_PIXEL_DEPTH = 4
 Pixel depth of the screen when game mode is activiated.
const int GLUT_GAME_MODE_POSSIBLE = 1
 Non-zero if the game mode string last specified to glutGameModeString is a possible game mode configuration; zero otherwise. Being "possible" does not guarantee that if game mode is entered with glutEnterGameMode that the display settings will actually changed. GLUT_GAME_MODE_DISPLAY_CHANGED should be called once game mode is entered to determine if the display mode is actually changed.
const int GLUT_GAME_MODE_REFRESH_RATE = 5
 Screen refresh rate in cyles per second (hertz) when game mode is activated. Zero is returned if the refresh rate is unknown or cannot be queried.
const int GLUT_GAME_MODE_WIDTH = 2
 Width in pixels of the screen when game mode is activated.
const int GLUT_GREEN = 1
 Green color component.
const int GLUT_HAS_DIAL_AND_BUTTON_BOX = 603
 Non-zero if a dial and button box is available; zero if not available.
const int GLUT_HAS_JOYSTICK = 612
 Non-zero if a joystick is available; zero if not available.
const int GLUT_HAS_KEYBOARD = 600
 Non-zero if a keyboard is available; zero if not available. For most GLUT implementations, a keyboard can be assumed.
const int GLUT_HAS_MOUSE = 601
 Non-zero if a mouse is available; zero if not available. For most GLUT implementations, a keyboard can be assumed.
const int GLUT_HAS_OVERLAY = 802
 If the current window has an overlay established.
const int GLUT_HAS_SPACEBALL = 602
 Non-zero if a Spaceball is available; zero if not available.
const int GLUT_HAS_TABLET = 604
 Non-zero if a tablet is available; zero if not available.
const int GLUT_HIDDEN = 0
 The window is not shown or iconified.
const int GLUT_INDEX = 1
 Bit mask to select a color index mode window. This overrides GLUT_RGB or GLUT_RGBA if they are also specified.
const int GLUT_INIT_DISPLAY_MODE = 504
 The initial display mode bit mask.
const int GLUT_INIT_STATE = 124
 Unknown.
const int GLUT_INIT_WINDOW_HEIGHT = 503
 The height value of the initial window size.
const int GLUT_INIT_WINDOW_WIDTH = 502
 The width value of the initial window size.
const int GLUT_INIT_WINDOW_X = 500
 The X value of the initial window position.
const int GLUT_INIT_WINDOW_Y = 501
 The Y value of the initial window position.
const int GLUT_JOYSTICK_AXES = 615
 Number of axes supported by the joystick. If no joystick is supposrted, zero is returned.
const int GLUT_JOYSTICK_BUTTON_A = 1
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_JOYSTICK_BUTTON_B = 2
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_JOYSTICK_BUTTON_C = 4
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_JOYSTICK_BUTTON_D = 8
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_JOYSTICK_BUTTONS = 614
 Number of buttons supported by the joystick. If no joystick is supported, zero is returned.
const int GLUT_JOYSTICK_POLL_RATE = 616
 Returns the current window's joystick poll rate as set by glutJoystickFunc. If no joystick is supported, the poll rate will always be zero. The joystick poll rate also returns zero if the poll rate last specified to glutJoystickFunc is negative or a NULL callback was registered.
const int GLUT_KEY_DOWN = 103
 Down directional key.
const int GLUT_KEY_END = 107
 End directional key.
const int GLUT_KEY_F1 = 1
 F1 function key.
const int GLUT_KEY_F10 = 10
 F10 function key.
const int GLUT_KEY_F11 = 11
 F11 function key.
const int GLUT_KEY_F12 = 12
 F12 function key.
const int GLUT_KEY_F2 = 2
 F2 function key.
const int GLUT_KEY_F3 = 3
 F3 function key.
const int GLUT_KEY_F4 = 4
 F4 function key.
const int GLUT_KEY_F5 = 5
 F5 function key.
const int GLUT_KEY_F6 = 6
 F6 function key.
const int GLUT_KEY_F7 = 7
 F7 function key.
const int GLUT_KEY_F8 = 8
 F8 function key.
const int GLUT_KEY_F9 = 9
 F9 function key.
const int GLUT_KEY_HOME = 106
 Home directional key.
const int GLUT_KEY_INSERT = 108
 Insert directional key.
const int GLUT_KEY_LEFT = 100
 Left directional key.
const int GLUT_KEY_PAGE_DOWN = 105
 Page Down directional key.
const int GLUT_KEY_PAGE_UP = 104
 Page Up directional key.
const int GLUT_KEY_REPEAT_DEFAULT = 2
 Reset the key repeat mode for the window system to its default state.
const int GLUT_KEY_REPEAT_OFF = 0
 Disable key repeat for the window system on a global basis.
const int GLUT_KEY_REPEAT_ON = 1
 Enable key repeat for the window system on a global basis.
const int GLUT_KEY_RIGHT = 102
 Right directional key.
const int GLUT_KEY_UP = 101
 Up directional key.
const int GLUT_LAYER_IN_USE = 801
 Either GLUT_NORMAL or GLUT_OVERLAY depending on whether the normal plane or overlay is the layer in use.
const int GLUT_LEFT = 0
 Mouse pointer has left the window.
const int GLUT_LEFT_BUTTON = 0
 Left mouse button.
const int GLUT_LUMINANCE = 512
 Bit mask to select a window with a "luminance" color model. This model provides the functionality of OpenGL's RGBA color model, but the green and blue components are not maintained in the frame buffer. Instead each pixel's red component is converted to an index between zero and Glut.glutGet(Glut.GLUT_WINDOW_COLORMAP_SIZE) - 1 and looked up in a per-window color map to determine the color of pixels within the window. The initial colormap of GLUT_LUMINANCE windows is initialized to be a linear gray ramp, but can be modified with GLUT's colormap routines.
const int GLUT_MENU_IN_USE = 1
 Pop-up menus are in use by the user.
const int GLUT_MENU_NOT_IN_USE = 0
 Pop-up menus are not in use by the user.
const int GLUT_MENU_NUM_ITEMS = 300
 Number of menu items in the current menu.
const int GLUT_MIDDLE_BUTTON = 1
 Middle mouse button.
const int GLUT_MULTISAMPLE = 128
 Bit mask to select a window with multisampling support. If multisampling is not available, a non-multisampling window will automatically be chosen. Note: both the OpenGL client-side and server-side implementations must support the GLX_SAMPLE_SGIS extension for multisampling to be available.
const int GLUT_NORMAL = 0
 The normal plane.
const int GLUT_NORMAL_DAMAGED = 804
 True if the normal plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay will not set this true.
const int GLUT_NOT_VISIBLE = 0
 The window is not visible. No part of the window is visible. All further rendering to the window is discarded until the window's visibility changes.
const int GLUT_NUM_BUTTON_BOX_BUTTONS = 607
 Number of buttons supported by the dial and button box device. If no dials and button box device is supported, zero is returned.
const int GLUT_NUM_DIALS = 608
 Number of dials supported by the dial and button box device. If no dials and button box device is supported, zero is returned.
const int GLUT_NUM_MOUSE_BUTTONS = 605
 Number of buttons supported by the mouse. If no mouse is supported, zero is returned.
const int GLUT_NUM_SPACEBALL_BUTTONS = 606
 Number of buttons supported by the Spaceball. If no Spaceball is supported, zero is returned.
const int GLUT_NUM_TABLET_BUTTONS = 609
 Number of buttons supported by the tablet. If no tablet is supported, zero is returned.
const int GLUT_OVERLAY = 1
 The overlay plane.
const int GLUT_OVERLAY_DAMAGED = 805
 True if the overlay plane of the current window has damaged (by window system activity) since the last display callback was triggered. Calling glutPostRedisplay or glutPostOverlayRedisplay will not set this true. Negative one is returned if no overlay is in use.
const int GLUT_OVERLAY_POSSIBLE = 800
 Whether an overlay could be established for the current window given the current initial display mode. If false, glutEstablishOverlay will fail with a fatal error if called.
const int GLUT_OWNS_JOYSTICK = 613
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_PARTIALLY_RETAINED = 2
 Some but not all pixels belonging to the window are covered by other windows.
const int GLUT_RED = 0
 Red color component.
const int GLUT_RENDERING_CONTEXT = 0x01FD
 Gets GLUT's rendering context.
const int GLUT_RGB = 0
 An alias for GLUT_RGBA.
const int GLUT_RGBA = GLUT_RGB
 Bit mask to select an RGBA mode window. This is the default if neither GLUT_RGB, GLUT_RGBA, nor GLUT_INDEX are specified.
const int GLUT_RIGHT_BUTTON = 2
 Right mouse button.
const int GLUT_SCREEN_HEIGHT = 201
 Height of the screen in pixels. Zero indicates the height is unknown or not available.
const int GLUT_SCREEN_HEIGHT_MM = 203
 Height of the screen in millimeters. Zero indicates the height is unknown or not available.
const int GLUT_SCREEN_WIDTH = 200
 Width of the screen in pixels. Zero indicates the width is unknown or not available.
const int GLUT_SCREEN_WIDTH_MM = 202
 Width of the screen in millimeters. Zero indicates the width is unknown or not available.
const int GLUT_SINGLE = 0
 Bit mask to select a single buffered window. This is the default if neither GLUT_DOUBLE or GLUT_SINGLE are specified.
const int GLUT_STENCIL = 32
 Bit mask to select a window with a stencil buffer.
const int GLUT_STEREO = 256
 Bit mask to select a stereo window.
const int GLUT_TRANSPARENT_INDEX = 803
 The transparent color index of the overlay of the current window; negative one is returned if no overlay is in use.
const int GLUT_TRY_DIRECT_CONTEXT = 2
 Direct/Indirect rendering context options (has meaning only in Unix/X11).
const int GLUT_UP = 1
 Mouse button up.
const int GLUT_USE_CURRENT_CONTEXT = 1
 Use current context when user opens a new window.
const int GLUT_VERSION = 0x01FC
 Gets GLUT version.
const int GLUT_VIDEO_RESIZE_HEIGHT = 909
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_HEIGHT_DELTA = 905
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_IN_USE = 901
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_POSSIBLE = 900
 Non-zero if video resizing is supported by the underlying system; zero if not supported. If this is zero, the other video resize GLUT calls do nothing when called.
const int GLUT_VIDEO_RESIZE_WIDTH = 908
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_WIDTH_DELTA = 904
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_X = 906
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_X_DELTA = 902
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_Y = 907
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VIDEO_RESIZE_Y_DELTA = 903
 Unknown. Unable to locate definitive documentation on this constant.
const int GLUT_VISIBLE = 1
 The window is visible. Does not distinguish a window being totally versus partially visible.
const int GLUT_WINDOW_ACCUM_ALPHA_SIZE = 114
 Number of bits of alpha stored in the current window's accumulation buffer. Zero if the window is color index.
const int GLUT_WINDOW_ACCUM_BLUE_SIZE = 113
 Number of bits of blue stored in the current window's accumulation buffer. Zero if the window is color index.
const int GLUT_WINDOW_ACCUM_GREEN_SIZE = 112
 Number of bits of green stored in the current window's accumulation buffer. Zero if the window is color index.
const int GLUT_WINDOW_ACCUM_RED_SIZE = 111
 Number of bits of red stored in the current window's accumulation buffer. Zero if the window is color index.
const int GLUT_WINDOW_ALPHA_SIZE = 110
 Number of bits of alpha stored the current window's color buffer. Zero if the window is color index.
const int GLUT_WINDOW_BLUE_SIZE = 109
 Number of bits of blue stored the current window's color buffer. Zero if the window is color index.
const int GLUT_WINDOW_BORDER_WIDTH = 0x01FA
 Gets the window border width.
const int GLUT_WINDOW_BUFFER_SIZE = 104
 Total number of bits for current window's color buffer. For an RGBA window, this is the sum of GLUT_WINDOW_RED_SIZE, GLUT_WINDOW_GREEN_SIZE, GLUT_WINDOW_BLUE_SIZE, and GLUT_WINDOW_ALPHA_SIZE. For color index windows, this is the size of the color indexes.
const int GLUT_WINDOW_COLORMAP_SIZE = 119
 Size of current window's color index colormap; zero for RGBA color model windows.
const int GLUT_WINDOW_CURSOR = 122
 Current cursor for the current window.
const int GLUT_WINDOW_DEPTH_SIZE = 106
 Number of bits in the current window's depth buffer.
const int GLUT_WINDOW_DOUBLEBUFFER = 115
 One if the current window is double buffered, zero otherwise.
const int GLUT_WINDOW_FORMAT_ID = 123
 The window system dependent format ID for the current layer of the current window. On X11 GLUT implementations, this is the X visual ID. On Win32 GLUT implementations, this is the Win32 Pixel Format Descriptor number. This value is returned for debugging, benchmarking, and testing ease.
const int GLUT_WINDOW_GREEN_SIZE = 108
 Number of bits of green stored the current window's color buffer. Zero if the window is color index.
const int GLUT_WINDOW_HEADER_HEIGHT = 0x01FB
 Gets window header height.
const int GLUT_WINDOW_HEIGHT = 103
 Height in pixels of the current window.
const int GLUT_WINDOW_NUM_CHILDREN = 118
 The number of subwindows the current window has (not counting children of children).
const int GLUT_WINDOW_NUM_SAMPLES = 120
 Number of samples for multisampling for the current window.
const int GLUT_WINDOW_PARENT = 117
 The window number of the current window's parent; zero if the window is a top-level window.
const int GLUT_WINDOW_RED_SIZE = 107
 Number of bits of red stored the current window's color buffer. Zero if the window is color index.
const int GLUT_WINDOW_RGBA = 116
 One if the current window is RGBA mode, zero otherwise (i.e., color index).
const int GLUT_WINDOW_STENCIL_SIZE = 105
 Number of bits in the current window's stencil buffer.
const int GLUT_WINDOW_STEREO = 121
 One if the current window is stereo, zero otherwise.
const int GLUT_WINDOW_WIDTH = 102
 Width in pixels of the current window.
const int GLUT_WINDOW_X = 100
 X location in pixels (relative to the screen origin) of the current window.
const int GLUT_WINDOW_Y = 101
 Y location in pixels (relative to the screen origin) of the current window.
const int GLUT_XLIB_IMPLEMENTATION = 13

Static Public Attributes

static readonly IntPtr GLUT_BITMAP_8_BY_13
 A fixed width font with every character fitting in an 8 by 13 pixel rectangle.
static readonly IntPtr GLUT_BITMAP_9_BY_15
 A fixed width font with every character fitting in an 9 by 15 pixel rectangle.
static readonly IntPtr GLUT_BITMAP_HELVETICA_10
 A 10-point proportional spaced Helvetica font.
static readonly IntPtr GLUT_BITMAP_HELVETICA_12
 A 12-point proportional spaced Helvetica font.
static readonly IntPtr GLUT_BITMAP_HELVETICA_18
 A 18-point proportional spaced Helvetica font.
static readonly IntPtr GLUT_BITMAP_TIMES_ROMAN_10
 A 10-point proportional spaced Times Roman font.
static readonly IntPtr GLUT_BITMAP_TIMES_ROMAN_24
 A 24-point proportional spaced Times Roman font.
static readonly IntPtr GLUT_STROKE_MONO_ROMAN
 A mono-spaced spaced Roman Simplex font (same characters as GLUT_STROKE_ROMAN) for ASCII characters 32 through 127. The maximum top character in the font is 119.05 units; the bottom descends 33.33 units. Each character is 104.76 units wide.
static readonly IntPtr GLUT_STROKE_ROMAN
 A proportionally spaced Roman Simplex font for ASCII characters 32 through 127. The maximum top character in the font is 119.05 units; the bottom descends 33.33 units.

Private Member Functions

static void __glutButtonBoxFunc (ButtonBoxCallback func)
 Called from glutButtonBoxFunc.
static void __glutCloseFunc (CloseCallback func)
 Called from glutCloseFunc.
static int __glutCreateMenu ([In] CreateMenuCallback func)
 Called from glutCreateMenu.
static void __glutDialsFunc (DialsCallback func)
 Called from glutDialsFunc.
static void __glutDisplayFunc (DisplayCallback func)
 Called from glutDisplayFunc.
static void __glutEntryFunc (EntryCallback func)
 Called from glutEntryFunc.
static void __glutIdleFunc (IdleCallback func)
 Called from glutIdleFunc.
static void __glutJoystickFunc (JoystickCallback func, int pollInterval)
 Called from glutJoystickFunc.
static void __glutKeyboardFunc (KeyboardCallback func)
 Called from glutKeyboardFunc.
static void __glutKeyboardUpFunc (KeyboardUpCallback func)
 Called from glutKeyboardUpFunc.
static void __glutMenuDestroyFunc (MenuDestroyCallback func)
 Called from glutMenuDestroyFunc.
static void __glutMenuStateFunc (MenuStateCallback func)
 Called from glutMenuStateFunc.
static void __glutMenuStatusFunc (MenuStatusCallback func)
 Called from glutMenuStatusFunc.
static void __glutMotionFunc (MotionCallback func)
 Called from glutMotionFunc.
static void __glutMouseFunc (MouseCallback func)
 Called from glutMouseFunc.
static void __glutMouseWheelFunc (MouseWheelCallback func)
 Called from glutMouseWheelFunc.
static void __glutOverlayDisplayFunc (OverlayDisplayCallback func)
 Called from glutOverlayDisplayFunc.
static void __glutPassiveMotionFunc (PassiveMotionCallback func)
 Called from glutPassiveMotionFunc.
static void __glutReshapeFunc (ReshapeCallback func)
 Called from glutReshapeFunc.
static void __glutSpaceballButtonFunc (SpaceballButtonCallback func)
 Called from glutSpaceballButtonFunc.
static void __glutSpaceballMotionFunc (SpaceballMotionCallback func)
 Called from glutSpaceballMotionFunc.
static void __glutSpaceballRotateFunc (SpaceballRotateCallback func)
 Called from glutSpaceballRotateFunc.
static void __glutSpecialFunc (SpecialCallback func)
 Called from glutSpecialFunc.
static void __glutSpecialUpFunc (SpecialUpCallback func)
 Called from glutSpecialUpFunc.
static void __glutTabletButtonFunc (TabletButtonCallback func)
 Called from glutTabletButtonFunc.
static void __glutTabletMotionFunc (TabletMotionCallback func)
 Called from glutTabletMotionFunc.
static void __glutTimerFunc (int msecs, TimerCallback func, int val)
 Called from glutTimerFunc.
static void __glutVisibilityFunc (VisibilityCallback func)
 Called from glutVisibilityFunc.
static void __glutWindowStatusFunc (WindowStatusCallback func)
 Called from glutWindowStatusFunc.
static void __glutWMCloseFunc (WindowCloseCallback func)
 Called from glutWMCloseFunc.

Static Private Member Functions

static Glut ()
 Static Glut constructor.

Private Attributes

const CallingConvention CALLING_CONVENTION = CallingConvention.Winapi
 Specifies the calling convention.
const string FREEGLUT_NATIVE_LIBRARY = "freeglut.dll"
 Specifies FREEGLUT's native library archive.

Static Private Attributes

static ButtonBoxCallback buttonBoxCallback
static CloseCallback closeCallback
static CreateMenuCallback createMenuCallback
static DialsCallback dialsCallback
static DisplayCallback displayCallback
static EntryCallback entryCallback
static IdleCallback idleCallback
static JoystickCallback joystickCallback
static KeyboardCallback keyboardCallback
static KeyboardUpCallback keyboardUpCallback
static MenuDestroyCallback menuDestroyCallback
static MenuStateCallback menuStateCallback
static MenuStatusCallback menuStatusCallback
static MotionCallback motionCallback
static MouseCallback mouseCallback
static MouseWheelCallback mouseWheelCallback
static OverlayDisplayCallback overlayDisplayCallback
static PassiveMotionCallback passiveMotionCallback
static ReshapeCallback reshapeCallback
static SpaceballButtonCallback spaceballButtonCallback
static SpaceballMotionCallback spaceballMotionCallback
static SpaceballRotateCallback spaceballRotateCallback
static SpecialCallback specialCallback
static SpecialUpCallback specialUpCallback
static TabletButtonCallback tabletButtonCallback
static TabletMotionCallback tabletMotionCallback
static TimerCallback timerCallback
static VisibilityCallback visibilityCallback
static WindowCloseCallback windowCloseCallback
static WindowStatusCallback windowStatusCallback

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index