Professional Documents
Culture Documents
bool al_install_keyboard(void)
bool al_is_keyboard_installed(void)
void al_uninstall_keyboard(void)
void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state)
bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode)
const char *al_keycode_to_name(int keycode)
bool al_set_keyboard_leds(int leds)
ALLEGRO_EVENT_SOURCE *al_get_keyboard_event_source(void)
void *al_malloc_with_context(size_t n,int line, const char *file, const char *func)
void al_free_with_context(void *ptr, int line, const char *file, const char *func)
void *al_realloc_with_context(void *ptr, size_t n,int line, const char *file, const char *func)
void *al_calloc_with_context(size_t count, size_t n,int line, const char *file, const char *func)
void al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE *memory_interface)
int al_get_new_display_adapter(void)
void al_set_new_display_adapter(int adapter)
bool al_get_monitor_info(int adapter, ALLEGRO_MONITOR_INFO *info)
int al_get_num_video_adapters(void)
bool al_install_mouse(void)
bool al_is_mouse_installed(void)
void al_uninstall_mouse(void)
unsigned int al_get_mouse_num_axes(void)
unsigned int al_get_mouse_num_buttons(void)
void al_get_mouse_state(ALLEGRO_MOUSE_STATE *ret_state)
int al_get_mouse_state_axis(const ALLEGRO_MOUSE_STATE *state, int axis)
bool al_mouse_button_down(const ALLEGRO_MOUSE_STATE *state, int button)
bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)
bool al_set_mouse_z(int z)
bool al_set_mouse_w(int w)
bool al_set_mouse_axis(int which, int value)
ALLEGRO_EVENT_SOURCE *al_get_mouse_event_source(void)
ALLEGRO_MOUSE_CURSOR *al_create_mouse_cursor(ALLEGRO_BITMAP *bmp,int x_focus, int
y_focus)
void al_destroy_mouse_cursor(ALLEGRO_MOUSE_CURSOR *cursor)
bool al_set_mouse_cursor(ALLEGRO_DISPLAY *display, ALLEGRO_MOUSE_CURSOR *cursor)
bool al_set_system_mouse_cursor(ALLEGRO_DISPLAY *display,ALLEGRO_SYSTEM_MOUSE_CURSOR
cursor_id)
bool al_get_mouse_cursor_position(int *ret_x, int *ret_y)
618
Ring Documentation, Release 1.3
619
Ring Documentation, Release 1.3
620
Ring Documentation, Release 1.3
621
Ring Documentation, Release 1.3
622
Ring Documentation, Release 1.3
623
Ring Documentation, Release 1.3
624
Ring Documentation, Release 1.3
625
Ring Documentation, Release 1.3
ALLEGRO_EVENT_SOURCE *al_get_audio_stream_event_source(ALLEGRO_AUDIO_STREAM
*stream)
void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
bool al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
unsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream)
ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels(const ALLEGRO_AUDIO_STREAM
*stream)
ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth(const ALLEGRO_AUDIO_STREAM *stream)
unsigned int al_get_audio_stream_length(const ALLEGRO_AUDIO_STREAM *stream)
float al_get_audio_stream_speed(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM *stream, float val)
float al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val)
float al_get_audio_stream_pan(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val)
bool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM *stream, bool val)
ALLEGRO_PLAYMODE al_get_audio_stream_playmode(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM *stream,ALLEGRO_PLAYMODE val)
bool al_get_audio_stream_attached(const ALLEGRO_AUDIO_STREAM *stream)
bool al_detach_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
void *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
unsigned int al_get_available_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
bool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time)
double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)
double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)
bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,double start, double end)
ALLEGRO_SAMPLE *al_load_sample(const char *filename)
ALLEGRO_SAMPLE al_load_sample_f(ALLEGRO_FILE fp, const char *ident)
ALLEGRO_AUDIO_STREAM *al_load_audio_stream(const char *filename,size_t buffer_count, unsigned int
samples)
ALLEGRO_AUDIO_STREAM al_load_audio_stream_f(ALLEGRO_FILE fp, const char *ident,size_t
buffer_count, unsigned int samples)
bool al_save_sample(const char *filename, ALLEGRO_SAMPLE *spl)
bool al_save_sample_f(ALLEGRO_FILE *fp, const char *ident, ALLEGRO_SAMPLE *spl)
626
Ring Documentation, Release 1.3
bool al_init_acodec_addon(void)
uint32_t al_get_allegro_acodec_version(void)
ALLEGRO_COLOR al_color_cmyk(float c, float m, float y, float k)
void al_color_cmyk_to_rgb(float cyan, float magenta, float yellow,float key, float *red, float *green, float *blue)
ALLEGRO_COLOR al_color_hsl(float h, float s, float l)
void al_color_hsl_to_rgb(float hue, float saturation, float lightness,float *red, float *green, float *blue)
ALLEGRO_COLOR al_color_hsv(float h, float s, float v)
void al_color_hsv_to_rgb(float hue, float saturation, float value,float *red, float *green, float *blue)
ALLEGRO_COLOR al_color_html(char const *string)
void al_color_html_to_rgb(char const *string,float *red, float *green, float *blue)
void al_color_rgb_to_html(float red, float green, float blue,char *string)
ALLEGRO_COLOR al_color_name(char const *name)
bool al_color_name_to_rgb(char const *name, float *r, float *g, float *b)
void al_color_rgb_to_cmyk(float red, float green, float blue,float *cyan, float *magenta, float *yellow, float
*key)
void al_color_rgb_to_hsl(float red, float green, float blue,float *hue, float *saturation, float *lightness)
void al_color_rgb_to_hsv(float red, float green, float blue,float *hue, float *saturation, float *value)
char const *al_color_rgb_to_name(float r, float g, float b)
void al_color_rgb_to_yuv(float red, float green, float blue,float *y, float *u, float *v)
ALLEGRO_COLOR al_color_yuv(float y, float u, float v)
void al_color_yuv_to_rgb(float y, float u, float v,float *red, float *green, float *blue)
uint32_t al_get_allegro_color_version(void)
void al_init_font_addon(void)
void al_shutdown_font_addon(void)
ALLEGRO_FONT *al_load_font(char const *filename, int size, int flags)
void al_destroy_font(ALLEGRO_FONT *f)
int al_get_font_ascent(const ALLEGRO_FONT *f)
int al_get_font_descent(const ALLEGRO_FONT *f)
int al_get_text_width(const ALLEGRO_FONT *f, const char *str)
int al_get_ustr_width(const ALLEGRO_FONT *f, ALLEGRO_USTR const *ustr)
void al_draw_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,char const
*text)
void al_draw_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,const
ALLEGRO_USTR *ustr)
void al_draw_justified_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float
y, float diff, int flags, const char *text)
void al_draw_justified_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float
y, float diff, int flags, const ALLEGRO_USTR *ustr)
627