You are on page 1of 10

Ring Documentation, Release 1.5.

• bool al_attach_mixer_to_voice(ALLEGRO_MIXER *mixer, ALLEGRO_VOICE *voice)


• bool al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_VOICE
*voice)
• unsigned int al_get_voice_frequency(const ALLEGRO_VOICE *voice)
• ALLEGRO_CHANNEL_CONF al_get_voice_channels(const ALLEGRO_VOICE *voice)
• ALLEGRO_AUDIO_DEPTH al_get_voice_depth(const ALLEGRO_VOICE *voice)
• bool al_get_voice_playing(const ALLEGRO_VOICE *voice)
• bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val)
• unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice)
• bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val)
• ALLEGRO_SAMPLE *al_create_sample(void *buf, unsigned int samples,unsigned int freq, ALLE-
GRO_AUDIO_DEPTH depth,ALLEGRO_CHANNEL_CONF chan_conf, bool free_buf)
• void al_destroy_sample(ALLEGRO_SAMPLE *spl)
• bool al_play_sample(ALLEGRO_SAMPLE *spl, float gain, float pan, float speed,int loop, ALLE-
GRO_SAMPLE_ID *ret_id)
• void al_stop_sample(ALLEGRO_SAMPLE_ID *spl_id)
• void al_stop_samples(void)
• ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl)
• ALLEGRO_AUDIO_DEPTH al_get_sample_depth(const ALLEGRO_SAMPLE *spl)
• unsigned int al_get_sample_frequency(const ALLEGRO_SAMPLE *spl)
• unsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl)
• void *al_get_sample_data(const ALLEGRO_SAMPLE *spl)
• ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data)
• void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_CHANNEL_CONF al_get_sample_instance_channels(const ALLEGRO_SAMPLE_INSTANCE
*spl)
• ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth(const ALLEGRO_SAMPLE_INSTANCE *spl)
• unsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl)
• unsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val)
• unsigned int al_get_sample_instance_position(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val)
• float al_get_sample_instance_speed(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
• float al_get_sample_instance_gain(const ALLEGRO_SAMPLE_INSTANCE *spl)

785
Ring Documentation, Release 1.5.1

• bool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val)


• float al_get_sample_instance_pan(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
• float al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_PLAYMODE al_get_sample_instance_playmode(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_PLAYMODE
val)
• bool al_get_sample_instance_playing(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE *spl, bool val)
• bool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample(ALLEGRO_SAMPLE_INSTANCE *spl, ALLEGRO_SAMPLE *data)
• ALLEGRO_MIXER *al_create_mixer(unsigned int freq,ALLEGRO_AUDIO_DEPTH depth, ALLE-
GRO_CHANNEL_CONF chan_conf)
• void al_destroy_mixer(ALLEGRO_MIXER *mixer)
• ALLEGRO_MIXER *al_get_default_mixer(void)
• bool al_set_default_mixer(ALLEGRO_MIXER *mixer)
• bool al_restore_default_mixer(void)
• bool al_attach_mixer_to_mixer(ALLEGRO_MIXER *stream, ALLEGRO_MIXER *mixer)
• bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_MIXER
*mixer)
• bool al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM *stream, ALLEGRO_MIXER *mixer)
• unsigned int al_get_mixer_frequency(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val)
• ALLEGRO_CHANNEL_CONF al_get_mixer_channels(const ALLEGRO_MIXER *mixer)
• ALLEGRO_AUDIO_DEPTH al_get_mixer_depth(const ALLEGRO_MIXER *mixer)
• float al_get_mixer_gain(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain)
• ALLEGRO_MIXER_QUALITY al_get_mixer_quality(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_quality(ALLEGRO_MIXER *mixer, ALLEGRO_MIXER_QUALITY new_quality)
• bool al_get_mixer_playing(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_playing(ALLEGRO_MIXER *mixer, bool val)
• bool al_get_mixer_attached(const ALLEGRO_MIXER *mixer)
• bool al_detach_mixer(ALLEGRO_MIXER *mixer)
• void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)

786
Ring Documentation, Release 1.5.1

• 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)

787
Ring Documentation, Release 1.5.1

• 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)

788
Ring Documentation, Release 1.5.1

• void al_get_text_dimensions(const ALLEGRO_FONT *f,char const *text,int *bbx, int *bby, int *bbw, int *bbh)
• void al_get_ustr_dimensions(const ALLEGRO_FONT *f,ALLEGRO_USTR const *ustr,int *bbx, int *bby, int
*bbw, int *bbh)
• uint32_t al_get_allegro_font_version(void)
• ALLEGRO_FONT *al_grab_font_from_bitmap(ALLEGRO_BITMAP *bmp,int ranges_n, const int ranges[])
• ALLEGRO_FONT *al_load_bitmap_font(const char *fname)
• ALLEGRO_FONT *al_create_builtin_font(void)
• bool al_init_ttf_addon(void)
• void al_shutdown_ttf_addon(void)
• ALLEGRO_FONT *al_load_ttf_font(char const *filename, int size, int flags)
• ALLEGRO_FONT *al_load_ttf_font_f(ALLEGRO_FILE *file,char const *filename, int size, int flags)
• ALLEGRO_FONT *al_load_ttf_font_stretch(char const *filename, int w, int h,int flags)
• ALLEGRO_FONT *al_load_ttf_font_stretch_f(ALLEGRO_FILE *file,char const *filename, int w, int h, int
flags)
• uint32_t al_get_allegro_ttf_version(void)
• bool al_init_image_addon(void)
• void al_shutdown_image_addon(void)
• uint32_t al_get_allegro_image_version(void)
• ALLEGRO_FILE *al_open_memfile(void *mem, int64_t size, const char *mode)
• uint32_t al_get_allegro_memfile_version(void)
• bool al_init_native_dialog_addon(void)
• void al_shutdown_native_dialog_addon(void)
• ALLEGRO_FILECHOOSER *al_create_native_file_dialog(char const *initial_path,char const *title,char const
*patterns,int mode)
• bool al_show_native_file_dialog(ALLEGRO_DISPLAY *display,ALLEGRO_FILECHOOSER *dialog)
• int al_get_native_file_dialog_count(const ALLEGRO_FILECHOOSER *dialog)
• const char *al_get_native_file_dialog_path(const ALLEGRO_FILECHOOSER *dialog, size_t i)
• void al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER *dialog)
• int al_show_native_message_box(ALLEGRO_DISPLAY *display,char const *title, char const *heading, char
const *text,char const *buttons, int flags)
• ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)
• void al_close_native_text_log(ALLEGRO_TEXTLOG *textlog)
• uint32_t al_get_allegro_native_dialog_version(void)
• void al_set_physfs_file_interface(void)
• uint32_t al_get_allegro_physfs_version(void)
• uint32_t al_get_allegro_primitives_version(void)
• bool al_init_primitives_addon(void)

789
Ring Documentation, Release 1.5.1

• void al_shutdown_primitives_addon(void)
• void al_draw_line(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness)
• void al_draw_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color, float
thickness)
• void al_draw_filled_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color)
• void al_draw_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness)
• void al_draw_filled_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color)
• void al_draw_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR color,
float thickness)
• void al_draw_filled_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR
color)
• void al_calculate_arc(float* dest, int stride, float cx, float cy,float rx, float ry, float start_theta, float delta_theta,
float thickness,int num_points)
• void al_draw_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color,
float thickness)
• void al_draw_filled_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR
color)
• void al_draw_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color, float thickness)
• void al_draw_filled_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color)
• void al_draw_circle(float cx, float cy, float r, ALLEGRO_COLOR color,float thickness)
• void al_draw_filled_circle(float cx, float cy, float r, ALLEGRO_COLOR color)
• void al_draw_arc(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color, float
thickness)
• void al_draw_elliptical_arc(float cx, float cy, float rx, float ry, float start_theta,float delta_theta, ALLE-
GRO_COLOR color, float thickness)
• void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,float thickness, int
num_segments)
• int al_draw_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP* texture,
int start, int end, int type)
• int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP*
texture, const int* indices, int num_vtx, int type)
• ALLEGRO_VERTEX_DECL* al_create_vertex_decl(const ALLEGRO_VERTEX_ELEMENT* elements, int
stride)
• void al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL* decl)

790
CHAPTER

SEVENTYFOUR

RINGLIBSDL FUNCTIONS REFERENCE

• void SDL_RenderCopy2(SDL_Renderer *,SDL_Texture *)


• void SDL_Delay(int)
• void SDL_Init(int)
• int SDL_InitSubSystem(Uint32 flags)
• void SDL_Quit(void)
• void SDL_QuitSubSystem(Uint32 flags)
• void SDL_SetMainReady(void)
• Uint32 SDL_WasInit(Uint32 flags)
• SDL_bool SDL_SetHint(const char *name,const char *value)
• SDL_bool SDL_SetHintWithPriority(const char *name,const char *value,SDL_HintPriority priority)
• void SDL_ClearError(void)
• const char *SDL_GetError(void)
• SDL_LogPriority SDL_LogGetPriority(int category)
• void SDL_LogResetPriorities(void)
• void SDL_LogSetAllPriority(SDL_LogPriority priority)
• SDL_AssertionHandler SDL_GetDefaultAssertionHandler(void)
• void SDL_ResetAssertionReport(void)
• void SDL_SetAssertionHandler(SDL_AssertionHandler handler,void *userdata)
• void SDL_TriggerBreakpoint(void)
• void SDL_assert(int)
• void SDL_assert_paranoid(int)
• void SDL_assert_release(int)
• const char * SDL_GetRevision(void)
• int SDL_GetRevisionNumber(void)
• void SDL_GetVersion(SDL_version *ver)
• SDL_Window *SDL_CreateWindow(const char * title,int x, int y,int w,int h,Uint32 flags)
• void SDL_DestroyWindow(SDL_Window *window)

791
Ring Documentation, Release 1.5.1

• void SDL_DisableScreenSaver(void)
• void SDL_EnableScreenSaver(void)
• SDL_GLContext SDL_GL_CreateContext(SDL_Window *window)
• void SDL_GL_DeleteContext(SDL_GLContext context)
• SDL_bool SDL_GL_ExtensionSupported(const char *extension)
• int SDL_GL_GetAttribute(SDL_GLattr attr,int *value)
• SDL_GLContext SDL_GL_GetCurrentContext(void)
• SDL_Window *SDL_GL_GetCurrentWindow(void)
• void SDL_GL_GetDrawableSize(SDL_Window *window,int *w,int *h)
• void *SDL_GL_GetProcAddress(const char *proc)
• int SDL_GL_GetSwapInterval(void)
• int SDL_GL_LoadLibrary(const char *path)
• int SDL_GL_MakeCurrent(SDL_Window *window,SDL_GLContext context)
• void SDL_GL_ResetAttributes(void)
• int SDL_GL_SetAttribute(SDL_GLattr attr,int value)
• int SDL_GL_SetSwapInterval(int interval)
• void SDL_GL_SwapWindow(SDL_Window *window)
• void SDL_GL_UnloadLibrary(void)
• SDL_DisplayMode *SDL_GetClosestDisplayMode(int displayIndex,SDL_DisplayMode
*mode,SDL_DisplayMode *closest)
• int SDL_GetCurrentDisplayMode(int displayIndex,SDL_DisplayMode *mode)
• const char *SDL_GetCurrentVideoDriver(void)
• int SDL_GetDesktopDisplayMode(int displayIndex,SDL_DisplayMode *mode)
• int SDL_GetDisplayBounds(int displayIndex,SDL_Rect *rect)
• int SDL_GetNumVideoDisplays(void)
• int SDL_GetNumVideoDrivers(void)
• const char * SDL_GetVideoDriver(int index)
• void *SDL_GetWindowData(SDL_Window *window,const char *name)
• int SDL_GetWindowDisplayIndex(SDL_Window *window)
• int SDL_GetWindowDisplayMode(SDL_Window *window,SDL_DisplayMode *mode)
• Uint32 SDL_GetWindowFlags(SDL_Window *window)
• SDL_Window *SDL_GetWindowFromID(Uint32 id)
• int SDL_GetWindowGammaRamp(SDL_Window *window,Uint16 *red,Uint16 *green,Uint16 *blue)
• SDL_bool SDL_GetWindowGrab(SDL_Window *window)
• Uint32 SDL_GetWindowID(SDL_Window* window)
• void SDL_GetWindowMaximumSize(SDL_Window *window,int *w,int *h)

792
Ring Documentation, Release 1.5.1

• void SDL_GetWindowMinimumSize(SDL_Window *window,int *w,int *h)


• void SDL_GetWindowPosition(SDL_Window *window,int *x,int *y)
• void SDL_GetWindowSize(SDL_Window *window,int *w,int *h)
• SDL_Surface *SDL_GetWindowSurface(SDL_Window *window)
• const char *SDL_GetWindowTitle(SDL_Window *window)
• SDL_bool SDL_IsScreenSaverEnabled(void)
• void SDL_MaximizeWindow(SDL_Window *window)
• void SDL_MinimizeWindow(SDL_Window *window)
• void SDL_RaiseWindow(SDL_Window *window)
• void SDL_RestoreWindow(SDL_Window *window)
• void SDL_SetWindowBordered(SDL_Window *window,SDL_bool bordered)
• int SDL_SetWindowBrightness(SDL_Window *window,float brightness)
• void *SDL_SetWindowData(SDL_Window *window,const char *name,void *userdata)
• int SDL_SetWindowDisplayMode(SDL_Window *window,const SDL_DisplayMode *mode)
• int SDL_SetWindowFullscreen(SDL_Window *window,Uint32 flags)
• int SDL_SetWindowGammaRamp(SDL_Window window,const Uint16 *red,const Uint16 *green,const Uint16
blue)
• void SDL_SetWindowGrab(SDL_Window *window,SDL_bool grabbed)
• void SDL_SetWindowMinimumSize(SDL_Window* window,int min_w,int min_h)
• void SDL_SetWindowSize(SDL_Window *window,int w,int h)
• void SDL_SetWindowTitle(SDL_Window *window,const char *title)
• int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata,int *buttonid)
• int SDL_ShowSimpleMessageBox(Uint32 flags,const char *title,const char *message,SDL_Window *window)
• void SDL_ShowWindow(SDL_Window *window)
• int SDL_UpdateWindowSurface(SDL_Window *window)
• int SDL_UpdateWindowSurfaceRects(SDL_Window *window,const SDL_Rect *rects,int numrects)
• int SDL_VideoInit(const char *driver_name)
• void SDL_VideoQuit(void)
• SDL_Renderer *SDL_CreateRenderer(SDL_Window *window,int index,Uint32 flags)
• SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface)
• SDL_Texture *SDL_CreateTexture(SDL_Renderer *renderer,Uint32 format,int access,int w,int h)
• SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer,SDL_Surface *surface)
• void SDL_DestroyTexture(SDL_Texture *texture)
• int SDL_GL_BindTexture(SDL_Texture *texture,float *texw,float *texh)
• int SDL_GL_UnbindTexture(SDL_Texture *texture)
• int SDL_GetNumRenderDrivers(void)

793
Ring Documentation, Release 1.5.1

• int SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode *blendMode)


• int SDL_GetRenderDrawColor(SDL_Renderer *renderer,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a)
• int SDL_GetRenderDriverInfo(int index,SDL_RendererInfo *info)
• SDL_Texture *SDL_GetRenderTarget(SDL_Renderer *renderer)
• SDL_Renderer *SDL_GetRenderer(SDL_Window *window)
• int SDL_GetRendererInfo(SDL_Renderer *renderer,SDL_RendererInfo *info)
• int SDL_GetRendererOutputSize(SDL_Renderer *renderer,int *w,int *h)
• int SDL_GetTextureAlphaMod(SDL_Texture *texture,Uint8 *alpha)
• int SDL_GetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode *blendMode)
• int SDL_GetTextureColorMod(SDL_Texture *texture,Uint8 *r,Uint8 *g,Uint8 *b)
• int SDL_LockTexture(SDL_Texture *texture,const SDL_Rect *rect,void **pixels,int *pitch)
• int SDL_QueryTexture(SDL_Texture *texture,int *format,int *access,int *w,int *h)
• int SDL_RenderClear(SDL_Renderer *renderer)
• int SDL_RenderCopy(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const
SDL_Rect *dstrect)
• int SDL_RenderCopyEx(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const
SDL_Rect *dstrect,const double angle,const SDL_Point *center,const SDL_RendererFlip flip)
• int SDL_RenderDrawLine(SDL_Renderer *renderer,int x1,int y1,int x2,int y2)
• int SDL_RenderDrawLines(SDL_Renderer *renderer,const SDL_Point *points,int count)
• int SDL_RenderDrawPoint(SDL_Renderer *renderer,int x, int y)
• int SDL_RenderDrawPoints(SDL_Renderer *renderer,const SDL_Point *points,int count)
• int SDL_RenderDrawRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderDrawRects(SDL_Renderer *renderer,const SDL_Rect *rects,int count)
• int SDL_RenderFillRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderFillRects(SDL_Renderer renderer,const SDL_Rect rects,int count)
• void SDL_RenderGetClipRect(SDL_Renderer *renderer,SDL_Rect *rect)
• void SDL_RenderGetScale(SDL_Renderer *renderer,float *scaleX,float *scaleY)
• void SDL_RenderGetViewport(SDL_Renderer *renderer,SDL_Rect *rect)
• int SDL_RenderReadPixels(SDL_Renderer *renderer,const SDL_Rect *rect,Uint32 format,void *pixels,int
pitch)
• int SDL_RenderSetClipRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderSetScale(SDL_Renderer *renderer,float scaleX,float scaleY)
• int SDL_RenderSetViewport(SDL_Renderer *renderer,const SDL_Rect *rect)
• SDL_bool SDL_RenderTargetSupported(SDL_Renderer *renderer)
• int SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode blendMode)
• int SDL_SetRenderDrawColor(SDL_Renderer *renderer,Uint8 r,Uint8 g,Uint8 b,Uint8 a)
• int SDL_SetRenderTarget(SDL_Renderer *renderer,SDL_Texture *texture)

794

You might also like