package GLUT is
subtype Unsigned is Interfaces.C.unsigned;
type Glut_Joystick is access procedure (ButtonMask : Unsigned; X : Integer; Y : Integer; Z : Integer);
type Glut_Proc_2 is access procedure;
subtype Key_type is Interfaces.C.unsigned_char;
type Glut_Proc_4 is access procedure (Key : Key_type; X : Integer; Y : Integer);
type Glut_KeyUpFunc is access procedure (Key : Key_type; X : Integer; Y : Integer);
type Glut_Proc_5 is access procedure (Button : Integer; State : Integer; X : Integer; Y : Integer);
type Glut_Proc_20 is access procedure (Button : Integer; State : Integer; X : Integer; Y : Integer);
DOUBLE : constant := 2;
DEPTH : constant := 16;
LEFT_BUTTON : constant := 0;
RIGHT_BUTTON : constant := 2;
KEY_LEFT : constant := 100;
KEY_RIGHT : constant := 102;
KEY_PAGE_UP : constant := 104;
KEY_PAGE_DOWN : constant := 105;
GAME_MODE_PIXEL_DEPTH : constant := 4;
GAME_MODE_REFRESH_RATE : constant := 5;
GAME_MODE_DISPLAY_CHANGED : constant := 6;
STROKE_ROMAN : constant System.Address := STROKE_ROMAN_STROKE'Address;
STROKE_MONO_ROMAN : constant System.Address := STROKE_MONO_ROMAN_STROKE'Address;
BITMAP_9_BY_15 : constant System.Address := BITMAP_9_BY_15_FONT'Address;
BITMAP_8_BY_13 : constant System.Address := BITMAP_8_BY_13_FONT'Address;
BITMAP_TIMES_ROMAN_10 : constant System.Address := BITMAP_TIMES_ROMAN_10_FONT'Address;
BITMAP_TIMES_ROMAN_24 : constant System.Address := BITMAP_TIMES_ROMAN_24_FONT'Address;
BITMAP_HELVETICA_10 : constant System.Address := BITMAP_HELVETICA_10_FONT'Address;
BITMAP_HELVETICA_12 : constant System.Address := BITMAP_HELVETICA_12_FONT'Address;
BITMAP_HELVETICA_18 : constant System.Address := BITMAP_HELVETICA_18_FONT'Address;
WINDOW_WIDTH : constant := 102;
WINDOW_HEIGHT : constant := 103;
WINDOW_ACCUM_RED_SIZE : constant := 111;
WINDOW_ACCUM_GREEN_SIZE : constant := 112;
WINDOW_ACCUM_BLUE_SIZE : constant := 113;
WINDOW_ACCUM_ALPHA_SIZE : constant := 114;
WINDOW_COLORMAP_SIZE : constant := 119;
DISPLAY_MODE_POSSIBLE : constant := 400;
HAS_DIAL_AND_BUTTON_BOX : constant := 603;
NUM_SPACEBALL_BUTTONS : constant := 606;
NUM_BUTTON_BOX_BUTTONS : constant := 607;
VIDEO_RESIZE_POSSIBLE : constant := 900;
VIDEO_RESIZE_X_DELTA : constant := 902;
VIDEO_RESIZE_Y_DELTA : constant := 903;
VIDEO_RESIZE_WIDTH_DELTA : constant := 904;
VIDEO_RESIZE_HEIGHT_DELTA : constant := 905;
Active_Shift : constant := 1;
Active_Control : constant := 2;
Active_Alt : constant := 4;
CURSOR_TOP_LEFT_CORNER : constant := 16;
CURSOR_TOP_RIGHT_CORNER : constant := 17;
CURSOR_BOTTOM_RIGHT_CORNER : constant := 18;
CURSOR_BOTTOM_LEFT_CORNER : constant := 19;
CURSOR_NONE : constant := 101;
CURSOR_FULL_CROSSHAIR : constant := 102;
ACTION_EXIT : constant := 0;
ACTION_GLUTMAINLOOP_RETURNS : constant := 1;
GLUT_CREATE_NEW_CONTEXT : constant := 0;
procedure Init;
procedure InitDisplayMode
( | Mode | : Unsigned); |
procedure LeaveMainLoop;
procedure SwapBuffers;
function GetWindow return Integer;
function GetWindowData return System.Address;
procedure FullScreen;
procedure SpecialUpFunc
( | Func | : Glut_SpecialUp); |
procedure JoystickFunc
( | Funct | : Glut_Joystick; |
PollInterval | : Integer); |
procedure UseLayer
( | Layer | : GL.enum); |
function CreateMenu
( | P1 | : Glut_Proc_1) return Integer; |
procedure CloseFunc
( | Callback | : Glut_Proc_2); |
procedure DisplayFunc
( | P1 | : Glut_Proc_2); |
procedure ReshapeFunc
( | P1 | : Glut_Proc_3); |
procedure KeyboardFunc
( | P1 | : Glut_Proc_4); |
procedure KeyboardUpFunc
( | P1 | : Glut_KeyUpFunc); |
procedure PassiveMotionFunc
( | P1 | : Glut_Proc_7); |
procedure EntryFunc
( | P1 | : Glut_Proc_8); |
procedure VisibilityFunc
( | P1 | : Glut_Proc_9); |
procedure TimerFunc
( | Millis | : Unsigned; |
P2 | : Glut_Proc_11; | |
Value | : Integer); |
procedure MenuStateFunc
( | P1 | : Glut_Proc_12); |
procedure SpecialFunc
( | P1 | : Glut_Proc_13); |
procedure SpaceballMotionFunc
( | P1 | : Glut_Proc_14); |
procedure SpaceballRotateFunc
( | P1 | : Glut_Proc_15); |
procedure SpaceballButtonFunc
( | P1 | : Glut_Proc_16); |
procedure ButtonBoxFunc
( | P1 | : Glut_Proc_17); |
procedure DialsFunc
( | P1 | : Glut_Proc_18); |
procedure TabletMotionFunc
( | P1 | : Glut_Proc_19); |
procedure TabletButtonFunc
( | P1 | : Glut_Proc_20); |
procedure MenuStatusFunc
( | P1 | : Glut_Proc_21); |
procedure OverlayDisplayFunc
( | P1 | : Glut_Proc_22); |
procedure WindowStatusFunc
( | P1 | : Glut_Proc_23); |
procedure SetColor
( | P1 | : Integer; |
r | : GL.C_Float; | |
g | : GL.C_Float; | |
b | : GL.C_Float); |
function GetColor
( | Ndx | : Integer; |
Component | : Integer) return GL.C_Float; |
function Get
( | Type_Id | : GL.enum) return Integer; |
function DeviceGet
( | Type_Id | : GL.enum) return Integer; |
function LayerGet
( | Type_Id | : GL.enum) return Integer; |
procedure WireCube
( | Size | : GL.Double); |
procedure SolidCube
( | Size | : GL.Double); |
procedure WireTeapot
( | Size | : GL.Double); |
procedure SolidTeapot
( | Size | : GL.Double); |
function VideoResizeGet
( | Param | : GL.enum) return Integer; |
function GameModeGet
( | Mode | : GL.enum) return Integer; |