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 system related functions found in the Allegro egg.
Please see the main [allegro] wiki page for more information.
TOC »
Constants
- build-version
- pi
Enums
state-flag
- state-flag->int state-flagprocedure
state-flag may be one of the following symbols:
- new-display-parameters
- new-bitmap-parameters
- display
- target-bitmap
- blender
- new-file-interface
- transform
- bitmap
- all
- int->state-flag integerprocedure
system-path
- system-path->int system-pathprocedure
system-path may be one of the following symbols:
- resources-path
- temp-path
- user-data-path
- user-home-path
- user-settings-path
- user-documents-path
- exename-path
- last-path
Records
condition
- conditionrecord
driver
- driverrecord
- free-driver!procedure
- driver-id driverprocedure
- driver-ptr driverprocedure
- driver-autodetect driverprocedure
mutex
- mutexrecord
state
- staterecord
- make-state*procedure
- make-stateprocedure
- free-state! stateprocedure
system
- systemrecord
thread
- threadrecord
timer
- timerrecord
timeout
- timeoutrecord
- make-timeout*procedure
- make-timeoutprocedure
- free-timeout! timeoutprocedure
version
- versionrecord
- version-major versionprocedure
- version-sub versionprocedure
- version-wip versionprocedure
- version-release-number versionprocedure
- version-string versionprocedure
- version-date-string versionprocedure
- version-date versionprocedure
- version-int versionprocedure
Functions
System
- initprocedure
Implements al_init.
- inhibit-screensaver boolprocedure
Implements al_inhibit_screensaver.
- org-nameprocedure
Implements al_get_org_name.
- org-name-set! stringsetter
Implements al_set_org_name.
- app-nameprocedure
Implements al_get_app_name.
<setter>(app-name-set! string)</procedure>
Implements al_set_app_name.
- system-addon-uninstallprocedure
Implements al_uninstall_system.
- system-addon-installed?procedure
Implements al_is_system_installed.
- system-driverprocedure
Implements al_get_system_driver.
- system-configprocedure
Implements al_get_system_config.
- standard-path system-pathprocedure
Implements al_get_standard_path.
Threads
WARNING: Untested, may not interact well with Chicken.
Please, please tell me about your successes and workarounds. I'll fix the egg as called for.
- (make-thread* (function c-pointer (thread c-pointer)) c-pointer)procedure
Implements al_create_thread.
- (make-thread (function c-pointer (thread c-pointer)) c-pointer)procedure
Implements al_create_thread, with (free-thread!) declared as a finalizer.
- free-thread! threadprocedure
Implements al_destroy_thread.
<proceudre>(run-detached-thread (function c-pointer (c-pointer)) c-pointer)</procedure>
Implements al_run_detached_thread.
- thread-start! threadprocedure
Implements al_start_thread.
- (thread-join! thread ((c-pointer c-pointer) ret_value))procedure
Implements al_join_thread.
- thread-should-stop? threadprocedure
Implements al_get_thread_should_stop.
- thread-should-stop-set! threadsetter
Implements al_set_thread_should_stop.
- make-mutex*procedure
Implements al_create_mutex.
- make-mutexprocedure
Implements al_create_mutex, with (free-mutex!) declared as a finalizer.
- free-mutex! mutexprocedure
Implements al_destroy_mutex.
- make-mutex-recursive*procedure
Implements al_create_mutex_recursive.
- make-mutex-recursiveprocedure
Implements al_create_mutex_recursive, with (free-mutex!) declared as a finalizer.
- mutex-lock! mutexprocedure
Implements al_lock_mutex.
- mutex-unlock! mutexprocedure
Implements al_unlock_mutex.
- make-condition*procedure
Implements al_create_cond.
- make-conditionprocedure
Implements al_create_cond, with (free-condition!) declared as a finalizer.
- free-condition! conditionprocedure
Implements al_destroy_cond.
- condition-wait condition mutexprocedure
Implements al_wait_cond.
- condition-wait-until condition mutex timeoutprocedure
Implements al_wait_cond_until.
- condition-broadcast conditionprocedure
Implements al_broadcast_cond.
- condition-signal conditionprocedure
Implements al_signal_cond.
Thread Local Storage
- state-store! state state-flagprocedure
Implements al_store_state.
- state-restore stateprocedure
Implements al_restore_state.
Time
- current-timeprocedure
Implements al_get_time.
- rest doubleprocedure
Implements al_rest.
- timeout-init! timeout doubleprocedure
Implements al_init_timeout.
Timer
- make-timer* doubleprocedure
Implements al_create_timer.
- make-timer doubleprocedure
Implements al_create_timer, with (free-timer!) declared as a finalizer.
- free-timer! timerprocedure
Implements al_destroy_timer.
- usec->sec doubleprocedure
Implements ALLEGRO_USECS_TO_SECS.
- msec->sec doubleprocedure
Implements ALLEGRO_MSECS_TO_SECS.
- bps->sec doubleprocedure
Implements ALLEGRO_BPS_TO_SECS.
- bpm->sec doubleprocedure
Implements ALLEGRO_BPM_TO_SECS.
- timer-start! timerprocedure
Implements al_start_timer.
- timer-stop! timerprocedure
Implements al_stop_timer.
- timer-started? timerprocedure
Implements al_get_timer_started.
- timer-speed timerprocedure
Implements al_get_timer_speed.
<setter>(timer-speed-set! timer double)</procedure>
Implements al_set_timer_speed.
- timer-count timerprocedure
Implements al_get_timer_count.
<setter>(timer-count-set! timer integer)</procedure>
Implements al_set_timer_count.
- timer-count-add! timer integerprocedure
Implements al_add_timer_count.
- timer-source timerprocedure
Implements al_get_timer_event_source.
C Utilities
Found in the allegro-c-util module.
(make-c-string-list obj)
The obj parameter can either be a single string or list of strings. Returns a managed pointer to a NULL-terminated (char **) list suitable for use with GL extension methods.