Outdated egg!

This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

allegro

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

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

  1. Outdated egg!
  2. allegro
  3. Constants
  4. Enums
    1. display-flag
    2. display-option
    3. display-option-importance
    4. display-orientation
    5. gl-variant
  5. Records
    1. display
    2. display-mode
    3. monitor
  6. Functions
    1. Display
    2. Direct3D
      1. Bitmap Specific
      2. Display Specific
    3. OpenGL
    4. Windows

Constants

Enums

display-flag

[procedure] (display-flag->int display-flag)

display-flag may be one of the following symbols:

[procedure] (int->display-flag integer)

display-option

[procedure] (display-option->int display-option)

display-option may be one of the following symbols:

[procedure] (int->display-option integer)

display-option-importance

[procedure] (display-option-importance->int display-option-importance)

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

[procedure] (int->display-option-importance integer)

display-orientation

[procedure] (display-orientation->int display-orientation)

display-orientation may be one of the following symbols:

[procedure] (int->display-oprientation integer)

gl-variant

[procedure] (gl-variant->int gl-variant)

gl-variant may be one of the following symbols:

[procedure] (int->gl-variant integer)

Records

display

[record] display

display-mode

[record] display-mode
[procedure] (make-display-mode*)
[procedure] (make-display-mode)
[procedure] (free-display-mode! display-mode)
[procedure] (display-mode-width display-mode)
[setter] (display-mode-width-set! display-mode integer)
[procedure] (display-mode-height display-mode)
[setter] (display-mode-height-set! display-mode integer)
[procedure] (display-mode-format display-mode)
[setter] (display-mode-format-set! display-mode pixel-format)
[procedure] (display-mode-refresh-rate display-mode)
[setter] (display-mode-refresh-rate-set! display-mode integer)

monitor

[record] monitor
[procedure] (make-monitor*)
[procedure] (make-monitor)
[procedure] (free-monitor! monitor)
[procedure] (monitor-x1 monitor)
[procedure] (monitor-y1 monitor)
[procedure] (monitor-x2 monitor)
[procedure] (monitor-y2 monitor)

Functions

Display

[procedure] (new-display-refresh-rate)

Implements al_get_new_display_refresh_rate.

[procedure] (new-display-refresh-rate-set! integer)

Implements al_set_new_display_refresh_rate.

[procedure] (new-display-flags)

Implements al_get_new_display_flags.

[procedure] (new-display-flags-set! integer)

Implements al_set_new_display_flags.

[procedure] (new-display-adapter)

Implements al_get_new_display_adapter.

[procedure] (new-display-adapter-set! integer)

Implements al_set_new_display_adpater.

[procedure] (new-display-window-position)

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

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

Sets the a new display's window position.

[procedure] (new-display-option-value display-option)

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

[procedure] (new-display-option-importance display-option)

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

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

Implements al_set_new_display_option.

[procedure] (new-display-reset-options)

Implements al_reset_new_display_options.

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

Implements al_create_display.

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

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

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

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

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

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

[procedure] (free-display! display)

Implements al_destroy_display.

[procedure] (current-display)

Implements al_get_current_display.

[procedure] (display-mode-count)

Implements al_get_num_display_modes.

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

Implements al_get_display_mode, returning #f if unsuccessful.

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

Implements al_update_display_region.

[procedure] (compatible-bitmap? bitmap)

Implements al_is_compatible_bitmap.

[procedure] (wait-for-vsync)

Implements al_wait_for_vsync.

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

Implements al_draw_pixel.

[procedure] (video-adapter-count)

Implements al_get_num_video_adapters.

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

Implements al_get_monitor_info.

[procedure] (display-option display display-option)

Implements al_get_display_option.

[setter] (display-hold-bitmap-drawing! bool)

Implements al_hold_bitmap_drawing.

[procedure] (display-bitmap-drawing-held?)

Implements al_is_bitmap_drawing_help.

[procedure] (display-window-title-set! display string)

Implements al_set_window_title.

[procedure] (display-width display)

Implements al_get_display_width.

[procedure] (display-height display)

Implements al_get_display_height.

[procedure] (display-format display)

Implements al_get_display_format.

[procedure] (display-refresh-rate display)

Implements al_get_display_refresh_rate.

[procedure] (display-flags display)

Implements al_get_display_flags.

[procedure] (display-toggle-flag! display display-flag bool)

Implements al_toggle_display_flag.

[procedure] (display-backbuffer display)

Implements al_get_backbuffer.

[procedure] (display-acknowledge-resize display)

Implements al_acknowledge_resize.

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

Implements al_resize_display.

[procedure] (display-event-source display)

Implements al_get_display_event_source.

[procedure] (display-iconset! display bitmap)

Implements al_set_display_icon.

[procedure] (clear-to-color color)

Implements al_clear_to_color.

[procedure] (target-bitmap)

Implements al_get_target_bitmap.

[procedure] (target-bitmap-set! bitmap)

Implements al_set_target_bitmap.

[procedure] (target-backbuffer-set! display)

Implements al_set_target_backbuffer.

[procedure] (flip-display)

Implements al_flip_display.

Direct3D

[procedure] (d3d-non-pow2-texture-support?)

Implements al_have_d3d_non_pow2_texture_support.

[procedure] (d3d-non-square-texture-support?)

Implements al_have_d3d_non_square_texture_support.

Bitmap Specific

[procedure] (bitmap-d3d-system-texture bitmap)

Implements al_get_d3d_system_texture.

[procedure] (bitmap-d3d-video-texture bitmap)

Implements al_get_d3d_video_texture.

[procedure] (bitmap-d3d-texture-position bitmap)

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

Display Specific

[procedure] (display-d3d-device-lost? display)

Implements al_is_d3d_device_lost.

[procedure] (display-d3d-device display)

Implements al_get_d3d_device.

OpenGL

[procedure] (opengl-addon-version)

Implements al_get_opengl_version.

[procedure] (opengl-extension-exists? string)

Implements al_have_opengl_extension.

[procedure] (opengl-proc-address string)

Implements al_get_opengl_proc_address.

[procedure] (opengl-texture bitmap)

Implements al_get_opengl_texture.

[procedure] (opengl-remove-fbo! bitmap)

Implements al_remove_opengl_fbo.

[procedure] (opengl-fbo bitmap)

Implements al_get_opengl_fbo.

[procedure] (opengl-texture-size bitmap)

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

[procedure] (opengl-texture-position bitmap)

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

[procedure] (opengl-context-set! display)

Implements al_set_current_opengl_context.

[procedure] (opengl-variant)

Implements al_get_opengl_variant.

Windows

[procedure] (windows-window-handle)

Implements al_get_win_window_handle.