chickadee » allegro » display

allegro

This document pertains to display related methods found in the Allegro egg.

Please see the main [allegro] wiki page for more information.

Constants

Enums

display-flag

display-flag->int display-flagprocedure

display-flag may be one of the following symbols:

  • windowed
  • fullscreen
  • opengl
  • direct3d-internal
  • resizable
  • noframe
  • generate-expose-events
  • opengl3
  • opengl-forward-compatible
  • fullscreen-window
  • minimized
int->display-flag integerprocedure

display-option

display-option->int display-optionprocedure

display-option may be one of the following symbols:

  • red-size
  • green-size
  • blue-size
  • alpha-size
  • red-shift
  • green-shift
  • blue-shift
  • alpha-shift
  • acc-red-size
  • acc-green-size
  • acc-blue-size
  • acc-alpha-size
  • stereo
  • aux-buffers
  • color-size
  • depth-size
  • stencil-size
  • sample-buffers
  • samples
  • render-method
  • float-color
  • float-depth
  • single-buffer
  • swap-method
  • compatible-display
  • update-display-region
  • vsync
  • max-bitmap-size
  • support-npot-bitmap
  • can-draw-into-bitmap
  • support-separate-alpha
int->display-option integerprocedure

display-option-importance

display-option-importance->int display-option-importanceprocedure

display-option-importance may be one of the following symbols:

  • dont-care
  • require
  • suggest
int->display-option-importance integerprocedure

display-orientation

display-orientation->int display-orientationprocedure

display-orientation may be one of the following symbols:

  • degrees-0
  • degrees-90
  • degrees-180
  • degrees-270
  • face-up
  • face-down
int->display-oprientation integerprocedure

gl-variant

gl-variant->int gl-variantprocedure

gl-variant may be one of the following symbols:

  • opengl
  • opengl-es
int->gl-variant integerprocedure

Records

display

displayrecord

display-mode

display-moderecord
make-display-mode*procedure
make-display-modeprocedure
free-display-mode! display-modeprocedure
display-mode-width display-modeprocedure
display-mode-width-set! display-mode integersetter
display-mode-height display-modeprocedure
display-mode-height-set! display-mode integersetter
display-mode-format display-modeprocedure
display-mode-format-set! display-mode pixel-formatsetter
display-mode-refresh-rate display-modeprocedure
display-mode-refresh-rate-set! display-mode integersetter

monitor

monitorrecord
make-monitor*procedure
make-monitorprocedure
free-monitor! monitorprocedure
monitor-x1 monitorprocedure
monitor-y1 monitorprocedure
monitor-x2 monitorprocedure
monitor-y2 monitorprocedure

Functions

Display

new-display-refresh-rateprocedure

Implements al_get_new_display_refresh_rate.

new-display-refresh-rate-set! integerprocedure

Implements al_set_new_display_refresh_rate.

new-display-flagsprocedure

Implements al_get_new_display_flags.

new-display-flags-set! integerprocedure

Implements al_set_new_display_flags.

new-display-adapterprocedure

Implements al_get_new_display_adapter.

new-display-adapter-set! integerprocedure

Implements al_set_new_display_adpater.

new-display-window-positionprocedure

Returns a 2-element list consisting of the new display coordinates.

(new-display-window-position-set! (integer x) (integer y))procedure

Sets the a new display's window position.

new-display-option-value display-optionprocedure

Retrieves the value for a particular display-option for newly created displays.

new-display-option-importance display-optionprocedure

Retrieves the importance for a particular display-option for newly created dispalys.

(new-display-option-set! display-option (integer value) display-option-importance)procedure

Implements al_set_new_display_option.

new-display-reset-optionsprocedure

Implements al_reset_new_display_options.

(make-display* (integer width) (integer height))procedure

Implements al_create_display.

(make-display (integer width) (integer height))procedure

Implements al_create_display, with (free-display!) declared as a finalizer.

(make-display/mode* display-mode (integer adapter) (integer flags))procedure

Creates a new display, taking the refresh rate, width and height from a display-mode struct.

(make-display/mode display-mode (integer adapter) (integer flags))procedure

Creates a new display, taking the refresh rate, width and height from a display-mode struct, with (free-display-mode!) declared as a finalizer.

free-display! displayprocedure

Implements al_destroy_display.

current-displayprocedure

Implements al_get_current_display.

display-mode-countprocedure

Implements al_get_num_display_modes.

(display-mode-init! display-mode (integer index))procedure

Implements al_get_display_mode, returning #f if unsuccessful.

(update-display-region! (integer x) (integer y) (integer width) (integer height))procedure

Implements al_update_display_region.

compatible-bitmap? bitmapprocedure

Implements al_is_compatible_bitmap.

wait-for-vsyncprocedure

Implements al_wait_for_vsync.

(draw-pixel (float x) (floay y) color)procedure

Implements al_draw_pixel.

video-adapter-countprocedure

Implements al_get_num_video_adapters.

(monitor-init! monitor (integer adapter))procedure

Implements al_get_monitor_info.

display-option display display-optionprocedure

Implements al_get_display_option.

display-hold-bitmap-drawing! boolsetter

Implements al_hold_bitmap_drawing.

display-bitmap-drawing-held?procedure

Implements al_is_bitmap_drawing_help.

display-window-title-set! display stringprocedure

Implements al_set_window_title.

display-width displayprocedure

Implements al_get_display_width.

display-height displayprocedure

Implements al_get_display_height.

display-format displayprocedure

Implements al_get_display_format.

display-refresh-rate displayprocedure

Implements al_get_display_refresh_rate.

display-flags displayprocedure

Implements al_get_display_flags.

display-toggle-flag! display display-flag boolprocedure

Implements al_toggle_display_flag.

display-backbuffer displayprocedure

Implements al_get_backbuffer.

display-acknowledge-resize displayprocedure

Implements al_acknowledge_resize.

(display-resize! display (integer width) (integer height))procedure

Implements al_resize_display.

display-event-source displayprocedure

Implements al_get_display_event_source.

display-iconset! display bitmapprocedure

Implements al_set_display_icon.

clear-to-color colorprocedure

Implements al_clear_to_color.

target-bitmapprocedure

Implements al_get_target_bitmap.

target-bitmap-set! bitmapprocedure

Implements al_set_target_bitmap.

target-backbuffer-set! displayprocedure

Implements al_set_target_backbuffer.

flip-displayprocedure

Implements al_flip_display.

Direct3D

d3d-non-pow2-texture-support?procedure

Implements al_have_d3d_non_pow2_texture_support.

d3d-non-square-texture-support?procedure

Implements al_have_d3d_non_square_texture_support.

Bitmap Specific

bitmap-d3d-system-texture bitmapprocedure

Implements al_get_d3d_system_texture.

bitmap-d3d-video-texture bitmapprocedure

Implements al_get_d3d_video_texture.

bitmap-d3d-texture-position bitmapprocedure

Returns a 2-element list consisting of a u, v pair.

Display Specific

display-d3d-device-lost? displayprocedure

Implements al_is_d3d_device_lost.

display-d3d-device displayprocedure

Implements al_get_d3d_device.

OpenGL

opengl-addon-versionprocedure

Implements al_get_opengl_version.

opengl-extension-exists? stringprocedure

Implements al_have_opengl_extension.

opengl-proc-address stringprocedure

Implements al_get_opengl_proc_address.

opengl-texture bitmapprocedure

Implements al_get_opengl_texture.

opengl-remove-fbo! bitmapprocedure

Implements al_remove_opengl_fbo.

opengl-fbo bitmapprocedure

Implements al_get_opengl_fbo.

opengl-texture-size bitmapprocedure

Returns a 2-element list of the width and height of the opengl texture for the given bitmap.

opengl-texture-position bitmapprocedure

Returns a 2-element list of the u,v position of the opengl texture for the given bitmap.

opengl-context-set! displayprocedure

Implements al_set_current_opengl_context.

opengl-variantprocedure

Implements al_get_opengl_variant.

Windows

windows-window-handleprocedure

Implements al_get_win_window_handle.

Contents »