Index

Package: Displays

Description

package Allegro.Displays is
Allegro 5.0.9 - Display routines

Types

Allegro_Display

type Allegro_Display is limited private;

A_Allegro_Display

type A_Allegro_Display is access all Allegro_Display;

Display_Flags

subtype Display_Flags is Unsigned_32;

Display_Option

type Display_Option is new Integer;

Option_Importance

type Option_Importance is new Integer;

Allegro_Bitmap_Array

type Allegro_Bitmap_Array is array (Integer range <>) of A_Allegro_Bitmap;

Allegro_Display_Orientation

type Allegro_Display_Orientation is private;

Constants & Global variables

ALLEGRO_WINDOWED (Display_Flags)

ALLEGRO_WINDOWED                  : constant Display_Flags;

ALLEGRO_FULLSCREEN (Display_Flags)

ALLEGRO_FULLSCREEN                : constant Display_Flags;

ALLEGRO_OPENGL (Display_Flags)

ALLEGRO_OPENGL                    : constant Display_Flags;

ALLEGRO_DIRECT3D (Display_Flags)

ALLEGRO_DIRECT3D                  : constant Display_Flags;

ALLEGRO_RESIZABLE (Display_Flags)

ALLEGRO_RESIZABLE                 : constant Display_Flags;

ALLEGRO_FRAMELESS (Display_Flags)

ALLEGRO_FRAMELESS                 : constant Display_Flags;

ALLEGRO_NOFRAME (Display_Flags)

ALLEGRO_NOFRAME                   : constant Display_Flags;

ALLEGRO_GENERATE_EXPOSE_EVENTS (Display_Flags)

ALLEGRO_GENERATE_EXPOSE_EVENTS    : constant Display_Flags;

ALLEGRO_OPENGL_3_0 (Display_Flags)

ALLEGRO_OPENGL_3_0                : constant Display_Flags;

ALLEGRO_OPENGL_FORWARD_COMPATIBLE (Display_Flags)

ALLEGRO_OPENGL_FORWARD_COMPATIBLE : constant Display_Flags;

ALLEGRO_FULLSCREEN_WINDOW (Display_Flags)

ALLEGRO_FULLSCREEN_WINDOW         : constant Display_Flags;
status only

ALLEGRO_MINIMIZED (Display_Flags)

ALLEGRO_MINIMIZED                 : constant Display_Flags;

ALLEGRO_RED_SIZE (Display_Option)

ALLEGRO_RED_SIZE               : constant Display_Option;

ALLEGRO_GREEN_SIZE (Display_Option)

ALLEGRO_GREEN_SIZE             : constant Display_Option;

ALLEGRO_BLUE_SIZE (Display_Option)

ALLEGRO_BLUE_SIZE              : constant Display_Option;

ALLEGRO_ALPHA_SIZE (Display_Option)

ALLEGRO_ALPHA_SIZE             : constant Display_Option;

ALLEGRO_RED_SHIFT (Display_Option)

ALLEGRO_RED_SHIFT              : constant Display_Option;

ALLEGRO_GREEN_SHIFT (Display_Option)

ALLEGRO_GREEN_SHIFT            : constant Display_Option;

ALLEGRO_BLUE_SHIFT (Display_Option)

ALLEGRO_BLUE_SHIFT             : constant Display_Option;

ALLEGRO_ALPHA_SHIFT (Display_Option)

ALLEGRO_ALPHA_SHIFT            : constant Display_Option;

ALLEGRO_ACC_RED_SIZE (Display_Option)

ALLEGRO_ACC_RED_SIZE           : constant Display_Option;

ALLEGRO_ACC_GREEN_SIZE (Display_Option)

ALLEGRO_ACC_GREEN_SIZE         : constant Display_Option;

ALLEGRO_ACC_BLUE_SIZE (Display_Option)

ALLEGRO_ACC_BLUE_SIZE          : constant Display_Option;

ALLEGRO_ACC_ALPHA_SIZE (Display_Option)

ALLEGRO_ACC_ALPHA_SIZE         : constant Display_Option;

ALLEGRO_STEREO (Display_Option)

ALLEGRO_STEREO                 : constant Display_Option;

ALLEGRO_AUX_BUFFERS (Display_Option)

ALLEGRO_AUX_BUFFERS            : constant Display_Option;

ALLEGRO_COLOR_SIZE (Display_Option)

ALLEGRO_COLOR_SIZE             : constant Display_Option;

ALLEGRO_DEPTH_SIZE (Display_Option)

ALLEGRO_DEPTH_SIZE             : constant Display_Option;

ALLEGRO_STENCIL_SIZE (Display_Option)

ALLEGRO_STENCIL_SIZE           : constant Display_Option;

ALLEGRO_SAMPLE_BUFFERS (Display_Option)

ALLEGRO_SAMPLE_BUFFERS         : constant Display_Option;

ALLEGRO_SAMPLES (Display_Option)

ALLEGRO_SAMPLES                : constant Display_Option;

ALLEGRO_RENDER_METHOD (Display_Option)

ALLEGRO_RENDER_METHOD          : constant Display_Option;

ALLEGRO_FLOAT_COLOR (Display_Option)

ALLEGRO_FLOAT_COLOR            : constant Display_Option;

ALLEGRO_FLOAT_DEPTH (Display_Option)

ALLEGRO_FLOAT_DEPTH            : constant Display_Option;

ALLEGRO_SINGLE_BUFFER (Display_Option)

ALLEGRO_SINGLE_BUFFER          : constant Display_Option;

ALLEGRO_SWAP_METHOD (Display_Option)

ALLEGRO_SWAP_METHOD            : constant Display_Option;

ALLEGRO_COMPATIBLE_DISPLAY (Display_Option)

ALLEGRO_COMPATIBLE_DISPLAY     : constant Display_Option;

ALLEGRO_UPDATE_DISPLAY_REGION (Display_Option)

ALLEGRO_UPDATE_DISPLAY_REGION  : constant Display_Option;

ALLEGRO_VSYNC (Display_Option)

ALLEGRO_VSYNC                  : constant Display_Option;

ALLEGRO_MAX_BITMAP_SIZE (Display_Option)

ALLEGRO_MAX_BITMAP_SIZE        : constant Display_Option;

ALLEGRO_SUPPORT_NPOT_BITMAP (Display_Option)

ALLEGRO_SUPPORT_NPOT_BITMAP    : constant Display_Option;

ALLEGRO_CAN_DRAW_INTO_BITMAP (Display_Option)

ALLEGRO_CAN_DRAW_INTO_BITMAP   : constant Display_Option;

ALLEGRO_SUPPORT_SEPARATE_ALPHA (Display_Option)

ALLEGRO_SUPPORT_SEPARATE_ALPHA : constant Display_Option;

ALLEGRO_DONTCARE (Option_Importance)

ALLEGRO_DONTCARE : constant Option_Importance;

ALLEGRO_REQUIRE (Option_Importance)

ALLEGRO_REQUIRE  : constant Option_Importance;

ALLEGRO_SUGGEST (Option_Importance)

ALLEGRO_SUGGEST  : constant Option_Importance;

ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_0_DEGREES   : constant Allegro_Display_Orientation;

ALLEGRO_DISPLAY_ORIENTATION_90_DEGREES (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_90_DEGREES  : constant Allegro_Display_Orientation;

ALLEGRO_DISPLAY_ORIENTATION_180_DEGREES (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_180_DEGREES : constant Allegro_Display_Orientation;

ALLEGRO_DISPLAY_ORIENTATION_270_DEGREES (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_270_DEGREES : constant Allegro_Display_Orientation;

ALLEGRO_DISPLAY_ORIENTATION_FACE_UP (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_FACE_UP     : constant Allegro_Display_Orientation;

ALLEGRO_DISPLAY_ORIENTATION_FACE_DOWN (Allegro_Display_Orientation)

ALLEGRO_DISPLAY_ORIENTATION_FACE_DOWN   : constant Allegro_Display_Orientation;

Subprograms & Entries

Al_Get_New_Display_Adapter

function Al_Get_New_Display_Adapter return Integer;

Al_Get_New_Display_Flags

function Al_Get_New_Display_Flags return Display_Flags;

Al_Get_New_Display_Option

procedure Al_Get_New_Display_Option
( option: Display_Option;
value: out Integer;
importance: out Option_Importance );

Al_Get_New_Display_Refresh_Rate

function Al_Get_New_Display_Refresh_Rate return Integer;

Al_Get_New_Window_Position

procedure Al_Get_New_Window_Position
( x, y: access Integer );

Al_Set_New_Display_Adapter

procedure Al_Set_New_Display_Adapter
( adapter: Integer );

Al_Set_New_Display_Flags

procedure Al_Set_New_Display_Flags
( flags: Display_Flags );

Al_Set_New_Display_Option

procedure Al_Set_New_Display_Option
( option: Display_Option;
value: Integer;
importance: Option_Importance );

Al_Reset_New_Display_Options

procedure Al_Reset_New_Display_Options;

Al_Set_New_Display_Refresh_Rate

procedure Al_Set_New_Display_Refresh_Rate
( refresh_rate: Integer );

Al_Set_New_Window_Position

procedure Al_Set_New_Window_Position
( x, y: Integer );

Al_Create_Display

function Al_Create_Display
( w, h: Integer ) return A_Allegro_Display;

Al_Destroy_Display

procedure Al_Destroy_Display
( display: in out A_Allegro_Display );

Al_Get_Backbuffer

function Al_Get_Backbuffer
( display: A_Allegro_Display ) return A_Allegro_Bitmap;

Al_Get_Display_Width

function Al_Get_Display_Width
( display: A_Allegro_Display ) return Integer;

Al_Get_Display_Height

function Al_Get_Display_Height
( display: A_Allegro_Display ) return Integer;

Al_Get_Display_Flags

function Al_Get_Display_Flags
( display: A_Allegro_Display ) return Display_Flags;

Al_Get_Display_Format

function Al_Get_Display_Format
( display: A_Allegro_Display ) return Allegro_Pixel_Format;

Al_Get_Display_Option

function Al_Get_Display_Option
( display: A_Allegro_Display;
option: Display_Option ) return Integer;

Al_Get_Display_Refresh_Rate

function Al_Get_Display_Refresh_Rate
( display: A_Allegro_Display ) return Integer;

Al_Get_Window_Position

procedure Al_Get_Window_Position
( display: A_Allegro_Display;
x, y: access Integer );

Al_Set_Display_Icon

procedure Al_Set_Display_Icon
( display: A_Allegro_Display;
icon: A_Allegro_Bitmap );

Al_Set_Display_Flag

function Al_Set_Display_Flag
( display: A_Allegro_Display;
flag: Display_Flags;
onoff: Boolean ) return Boolean;

Al_Toggle_Display_Flag

function Al_Toggle_Display_Flag
( display: A_Allegro_Display;
flag: Display_Flags;
onoff: Boolean ) return Boolean renames Al_Set_Display_Flag;

Al_Set_Display_Icons

procedure Al_Set_Display_Icons
( display: A_Allegro_Display;
icons: Allegro_Bitmap_Array );

Al_Set_Window_Position

procedure Al_Set_Window_Position
( display: A_Allegro_Display;
x, y: Integer );

Al_Set_Window_Title

procedure Al_Set_Window_Title
( display: A_Allegro_Display;
title: String );

Al_Get_Current_Display

function Al_Get_Current_Display return A_Allegro_Display;

Al_Get_Target_Bitmap

function Al_Get_Target_Bitmap return A_Allegro_Bitmap;

Al_Set_Target_Bitmap

procedure Al_Set_Target_Bitmap
( bitmap: A_Allegro_Bitmap );

Al_Set_Target_Backbuffer

procedure Al_Set_Target_Backbuffer
( display: A_Allegro_Display );

Al_Wait_For_Vsync

function Al_Wait_For_Vsync return Boolean;

Al_Flip_Display

procedure Al_Flip_Display;

Al_Update_Display_Region

procedure Al_Update_Display_Region
( x, y: Integer;
width, height: Integer );

Al_Hold_Bitmap_Drawing

procedure Al_Hold_Bitmap_Drawing
( hold: Boolean );

Al_Is_Bitmap_Drawing_Held

function Al_Is_Bitmap_Drawing_Held return Boolean;

Al_Inhibit_Screensaver

function Al_Inhibit_Screensaver
( inhibit: Boolean ) return Boolean;

Al_Is_Compatible_Bitmap

function Al_Is_Compatible_Bitmap
( bitmap: A_Allegro_Bitmap ) return Boolean;

Al_Acknowledge_Resize

function Al_Acknowledge_Resize
( display: A_Allegro_Display ) return Boolean;

Al_Acknowledge_Resize

procedure Al_Acknowledge_Resize
( display: A_Allegro_Display );
Calls Al_Acknowledge_Resize, ignoring any errors.

Al_Resize_Display

function Al_Resize_Display
( display: A_Allegro_Display;
width, height: Integer ) return Boolean;

Al_Get_Display_Event_Source

function Al_Get_Display_Event_Source
( display: A_Allegro_Display ) return A_Allegro_Event_Source;