SlideShare a Scribd company logo
1 of 10
Download to read offline
Ring Documentation, Release 1.5.4
• 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)
825
Ring Documentation, Release 1.5.4
• 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)
826
Ring Documentation, Release 1.5.4
• 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)
827
Ring Documentation, Release 1.5.4
• 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)
828
CHAPTER
SEVENTYFIVE
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)
829
Ring Documentation, Release 1.5.4
• 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)
830
Ring Documentation, Release 1.5.4
• 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)
831
Ring Documentation, Release 1.5.4
• 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)
832
Ring Documentation, Release 1.5.4
• int SDL_SetTextureAlphaMod(SDL_Texture *texture,Uint8 alpha)
• int SDL_SetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode blendMode)
• int SDL_SetTextureColorMod(SDL_Texture *texture,Uint8 r,Uint8 g,Uint8 b)
• void SDL_UnlockTexture(SDL_Texture *texture)
• int SDL_UpdateTexture(SDL_Texture *texture,const SDL_Rect *rect,const void*pixels,int pitch)
• int SDL_UpdateYUVTexture(SDL_Texture *texture,const SDL_Rect *rect,const Uint8 *Yplane,int Yp-
itch,const Uint8 *Uplane,int Upitch,const Uint8 *Vplane,int Vpitch)
• SDL_PixelFormat *SDL_AllocFormat(Uint32 pixel_format)
• SDL_Palette *SDL_AllocPalette(int ncolors)
• void SDL_CalculateGammaRamp(float gamma,Uint16 *ramp)
• void SDL_FreeFormat(SDL_PixelFormat *format)
• void SDL_FreePalette(SDL_Palette *palette)
• const char *SDL_GetPixelFormatName(Uint32 format)
• void SDL_GetRGB(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b)
• void SDL_GetRGBA(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a)
• Uint32 SDL_MapRGB(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b)
• Uint32 SDL_MapRGBA(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b, Uint8 a)
• Uint32 SDL_MasksToPixelFormatEnum(int bpp,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask)
• SDL_bool SDL_PixelFormatEnumToMasks(Uint32 format,int *bpp,Uint32 *Rmask,Uint32 *Gmask,Uint32
*Bmask,Uint32 *Amask)
• int SDL_SetPaletteColors(SDL_Palette *palette,const SDL_Color *colors,int firstcolor,int ncolors)
• int SDL_SetPixelFormatPalette(SDL_PixelFormat *format,SDL_Palette *palette)
• SDL_bool SDL_EnclosePoints(const SDL_Point* points,int count,const SDL_Rect *clip,SDL_Rect *result)
• SDL_bool SDL_HasIntersection(const SDL_Rect *A,const SDL_Rect *B)
• SDL_bool SDL_IntersectRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result)
• SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect,int *X1,int *Y1,int *X2,int *Y2)
• SDL_bool SDL_RectEquals(const SDL_Rect *a,const SDL_Rect *b)
• void SDL_UnionRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result)
• int SDL_BlitScaled(SDL_Surface *src,const SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_BlitSurface(SDL_Surface src,const SDL_Rect srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_ConvertPixels(int width,int height,Uint32 src_format,const void *src,int src_pitch,Uint32
dst_format,void *dst,int dst_pitch)
• SDL_Surface *SDL_ConvertSurface(SDL_Surface *src,const SDL_PixelFormat *fmt,Uint32 flags)
• SDL_Surface *SDL_ConvertSurfaceFormat(SDL_Surface *src,Uint32 pixel_format,Uint32 flags)
• SDL_Surface *SDL_CreateRGBSurface(Uint32 flags,int width,int height,int depth,Uint32 Rmask,Uint32
Gmask,Uint32 Bmask,Uint32 Amask)
• SDL_Surface* SDL_CreateRGBSurfaceFrom(void *pixels,int width,int height,int depth,int pitch,Uint32
Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask)
833
Ring Documentation, Release 1.5.4
• int SDL_FillRect(SDL_Surface *dst,const SDL_Rect *rect,Uint32 color)
• int SDL_FillRects(SDL_Surface *dst,const SDL_Rect *rects,int count,Uint32 color)
• void SDL_FreeSurface(SDL_Surface *surface)
• void SDL_GetClipRect(SDL_Surface *surface,SDL_Rect *rect)
• int SDL_GetColorKey(SDL_Surface *surface,Uint32 *key)
• int SDL_GetSurfaceAlphaMod(SDL_Surface *surface,Uint8 *alpha)
• int SDL_GetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode *blendMode)
• int SDL_GetSurfaceColorMod(SDL_Surface *surface,Uint8 *r,Uint8 *g,Uint8 *b)
• SDL_Surface *SDL_LoadBMP(const char *file)
• SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src,int freesrc)
• int SDL_LockSurface(SDL_Surface *surface)
• int SDL_LowerBlit(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_LowerBlitScaled(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• SDL_bool SDL_MUSTLOCK(SDL_Surface *surface)
• int SDL_SaveBMP(SDL_Surface *surface,const char *file)
• int SDL_SaveBMP_RW(SDL_Surface *surface,SDL_RWops *dst,int freedst)
• SDL_bool SDL_SetClipRect(SDL_Surface *surface,const SDL_Rect *rect)
• int SDL_SetColorKey(SDL_Surface *surface,int flag,Uint32 key)
• int SDL_SetSurfaceAlphaMod(SDL_Surface *surface,Uint8 alpha)
• int SDL_SetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode blendMode)
• int SDL_SetSurfaceColorMod(SDL_Surface *surface,Uint8 r,Uint8 g,Uint8 b)
• int SDL_SetSurfacePalette(SDL_Surface *surface,SDL_Palette *palette)
• int SDL_SetSurfaceRLE(SDL_Surface *surface,int flag)
• void SDL_UnlockSurface(SDL_Surface* surface)
• SDL_bool SDL_GetWindowWMInfo(SDL_Window *window,SDL_SysWMinfo *info)
• char *SDL_GetClipboardText(void)
• SDL_bool SDL_HasClipboardText(void)
• int SDL_SetClipboardText(const char *text)
• void SDL_AddEventWatch(SDL_EventFilter filter,void *userdata)
• void SDL_DelEventWatch(SDL_EventFilter filter,void *userdata)
• Uint8 SDL_EventState(Uint32 type,int state)
• void SDL_FilterEvents(SDL_EventFilter filter,void *userdata)
• void SDL_FlushEvent(Uint32 type)
• void SDL_FlushEvents(Uint32 minType,Uint32 maxType)
• SDL_bool SDL_GetEventFilter(SDL_EventFilter *filter,void **userdata)
• Uint8 SDL_GetEventState(Uint32 type)
834

More Related Content

Similar to The Ring programming language version 1.5.4 book - Part 86 of 185

The Ring programming language version 1.5.4 book - Part 85 of 185
The Ring programming language version 1.5.4 book - Part 85 of 185The Ring programming language version 1.5.4 book - Part 85 of 185
The Ring programming language version 1.5.4 book - Part 85 of 185Mahmoud Samir Fayed
 
The Ring programming language version 1.5.1 book - Part 82 of 180
The Ring programming language version 1.5.1 book - Part 82 of 180The Ring programming language version 1.5.1 book - Part 82 of 180
The Ring programming language version 1.5.1 book - Part 82 of 180Mahmoud Samir Fayed
 
The Ring programming language version 1.9 book - Part 127 of 210
The Ring programming language version 1.9 book - Part 127 of 210The Ring programming language version 1.9 book - Part 127 of 210
The Ring programming language version 1.9 book - Part 127 of 210Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 114 of 196
The Ring programming language version 1.7 book - Part 114 of 196The Ring programming language version 1.7 book - Part 114 of 196
The Ring programming language version 1.7 book - Part 114 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.5.2 book - Part 82 of 181
The Ring programming language version 1.5.2 book - Part 82 of 181The Ring programming language version 1.5.2 book - Part 82 of 181
The Ring programming language version 1.5.2 book - Part 82 of 181Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.5.3 book - Part 96 of 184The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.5.3 book - Part 96 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 130 of 212
The Ring programming language version 1.10 book - Part 130 of 212The Ring programming language version 1.10 book - Part 130 of 212
The Ring programming language version 1.10 book - Part 130 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.8 book - Part 119 of 202
The Ring programming language version 1.8 book - Part 119 of 202The Ring programming language version 1.8 book - Part 119 of 202
The Ring programming language version 1.8 book - Part 119 of 202Mahmoud Samir Fayed
 
The Ring programming language version 1.2 book - Part 61 of 84
The Ring programming language version 1.2 book - Part 61 of 84The Ring programming language version 1.2 book - Part 61 of 84
The Ring programming language version 1.2 book - Part 61 of 84Mahmoud Samir Fayed
 
The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.3 book - Part 66 of 88The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.3 book - Part 66 of 88Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.6 book - Part 90 of 189The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.6 book - Part 90 of 189Mahmoud Samir Fayed
 
The Ring programming language version 1.4.1 book - Part 23 of 31
The Ring programming language version 1.4.1 book - Part 23 of 31The Ring programming language version 1.4.1 book - Part 23 of 31
The Ring programming language version 1.4.1 book - Part 23 of 31Mahmoud Samir Fayed
 
The Ring programming language version 1.4 book - Part 23 of 30
The Ring programming language version 1.4 book - Part 23 of 30The Ring programming language version 1.4 book - Part 23 of 30
The Ring programming language version 1.4 book - Part 23 of 30Mahmoud Samir Fayed
 
The Ring programming language version 1.3 book - Part 65 of 88
The Ring programming language version 1.3 book - Part 65 of 88The Ring programming language version 1.3 book - Part 65 of 88
The Ring programming language version 1.3 book - Part 65 of 88Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 88 of 189
The Ring programming language version 1.6 book - Part 88 of 189The Ring programming language version 1.6 book - Part 88 of 189
The Ring programming language version 1.6 book - Part 88 of 189Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.7 book - Part 115 of 196The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.7 book - Part 115 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 94 of 184
The Ring programming language version 1.5.3 book - Part 94 of 184The Ring programming language version 1.5.3 book - Part 94 of 184
The Ring programming language version 1.5.3 book - Part 94 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.9 book - Part 126 of 210
The Ring programming language version 1.9 book - Part 126 of 210The Ring programming language version 1.9 book - Part 126 of 210
The Ring programming language version 1.9 book - Part 126 of 210Mahmoud Samir Fayed
 
The Ring programming language version 1.3 book - Part 64 of 88
The Ring programming language version 1.3 book - Part 64 of 88The Ring programming language version 1.3 book - Part 64 of 88
The Ring programming language version 1.3 book - Part 64 of 88Mahmoud Samir Fayed
 
The Ring programming language version 1.5.4 book - Part 88 of 185
The Ring programming language version 1.5.4 book - Part 88 of 185The Ring programming language version 1.5.4 book - Part 88 of 185
The Ring programming language version 1.5.4 book - Part 88 of 185Mahmoud Samir Fayed
 

Similar to The Ring programming language version 1.5.4 book - Part 86 of 185 (20)

The Ring programming language version 1.5.4 book - Part 85 of 185
The Ring programming language version 1.5.4 book - Part 85 of 185The Ring programming language version 1.5.4 book - Part 85 of 185
The Ring programming language version 1.5.4 book - Part 85 of 185
 
The Ring programming language version 1.5.1 book - Part 82 of 180
The Ring programming language version 1.5.1 book - Part 82 of 180The Ring programming language version 1.5.1 book - Part 82 of 180
The Ring programming language version 1.5.1 book - Part 82 of 180
 
The Ring programming language version 1.9 book - Part 127 of 210
The Ring programming language version 1.9 book - Part 127 of 210The Ring programming language version 1.9 book - Part 127 of 210
The Ring programming language version 1.9 book - Part 127 of 210
 
The Ring programming language version 1.7 book - Part 114 of 196
The Ring programming language version 1.7 book - Part 114 of 196The Ring programming language version 1.7 book - Part 114 of 196
The Ring programming language version 1.7 book - Part 114 of 196
 
The Ring programming language version 1.5.2 book - Part 82 of 181
The Ring programming language version 1.5.2 book - Part 82 of 181The Ring programming language version 1.5.2 book - Part 82 of 181
The Ring programming language version 1.5.2 book - Part 82 of 181
 
The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.5.3 book - Part 96 of 184The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.5.3 book - Part 96 of 184
 
The Ring programming language version 1.10 book - Part 130 of 212
The Ring programming language version 1.10 book - Part 130 of 212The Ring programming language version 1.10 book - Part 130 of 212
The Ring programming language version 1.10 book - Part 130 of 212
 
The Ring programming language version 1.8 book - Part 119 of 202
The Ring programming language version 1.8 book - Part 119 of 202The Ring programming language version 1.8 book - Part 119 of 202
The Ring programming language version 1.8 book - Part 119 of 202
 
The Ring programming language version 1.2 book - Part 61 of 84
The Ring programming language version 1.2 book - Part 61 of 84The Ring programming language version 1.2 book - Part 61 of 84
The Ring programming language version 1.2 book - Part 61 of 84
 
The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.3 book - Part 66 of 88The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.3 book - Part 66 of 88
 
The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.6 book - Part 90 of 189The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.6 book - Part 90 of 189
 
The Ring programming language version 1.4.1 book - Part 23 of 31
The Ring programming language version 1.4.1 book - Part 23 of 31The Ring programming language version 1.4.1 book - Part 23 of 31
The Ring programming language version 1.4.1 book - Part 23 of 31
 
The Ring programming language version 1.4 book - Part 23 of 30
The Ring programming language version 1.4 book - Part 23 of 30The Ring programming language version 1.4 book - Part 23 of 30
The Ring programming language version 1.4 book - Part 23 of 30
 
The Ring programming language version 1.3 book - Part 65 of 88
The Ring programming language version 1.3 book - Part 65 of 88The Ring programming language version 1.3 book - Part 65 of 88
The Ring programming language version 1.3 book - Part 65 of 88
 
The Ring programming language version 1.6 book - Part 88 of 189
The Ring programming language version 1.6 book - Part 88 of 189The Ring programming language version 1.6 book - Part 88 of 189
The Ring programming language version 1.6 book - Part 88 of 189
 
The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.7 book - Part 115 of 196The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.7 book - Part 115 of 196
 
The Ring programming language version 1.5.3 book - Part 94 of 184
The Ring programming language version 1.5.3 book - Part 94 of 184The Ring programming language version 1.5.3 book - Part 94 of 184
The Ring programming language version 1.5.3 book - Part 94 of 184
 
The Ring programming language version 1.9 book - Part 126 of 210
The Ring programming language version 1.9 book - Part 126 of 210The Ring programming language version 1.9 book - Part 126 of 210
The Ring programming language version 1.9 book - Part 126 of 210
 
The Ring programming language version 1.3 book - Part 64 of 88
The Ring programming language version 1.3 book - Part 64 of 88The Ring programming language version 1.3 book - Part 64 of 88
The Ring programming language version 1.3 book - Part 64 of 88
 
The Ring programming language version 1.5.4 book - Part 88 of 185
The Ring programming language version 1.5.4 book - Part 88 of 185The Ring programming language version 1.5.4 book - Part 88 of 185
The Ring programming language version 1.5.4 book - Part 88 of 185
 

More from Mahmoud Samir Fayed

The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 212 of 212The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 212 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 211 of 212The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 211 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 210 of 212The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 210 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 208 of 212The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 208 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 207 of 212The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 207 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 205 of 212The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 205 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 206 of 212The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 206 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 204 of 212The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 204 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 203 of 212The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 203 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 202 of 212The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 202 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 201 of 212The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 201 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 200 of 212The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 200 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 199 of 212The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 199 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 198 of 212The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 198 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 197 of 212The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 197 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 196 of 212The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 196 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 195 of 212The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 195 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 194 of 212The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 194 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 193 of 212The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 193 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 192 of 212The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 192 of 212Mahmoud Samir Fayed
 

More from Mahmoud Samir Fayed (20)

The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 212 of 212The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 212 of 212
 
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 211 of 212The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 211 of 212
 
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 210 of 212The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 210 of 212
 
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 208 of 212The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 208 of 212
 
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 207 of 212The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 207 of 212
 
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 205 of 212The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 205 of 212
 
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 206 of 212The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 206 of 212
 
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 204 of 212The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 204 of 212
 
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 203 of 212The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 203 of 212
 
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 202 of 212The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 202 of 212
 
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 201 of 212The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 201 of 212
 
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 200 of 212The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 200 of 212
 
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 199 of 212The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 199 of 212
 
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 198 of 212The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 198 of 212
 
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 197 of 212The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 197 of 212
 
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 196 of 212The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 196 of 212
 
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 195 of 212The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 195 of 212
 
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 194 of 212The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 194 of 212
 
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 193 of 212The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 193 of 212
 
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 192 of 212The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 192 of 212
 

Recently uploaded

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governanceWSO2
 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 

The Ring programming language version 1.5.4 book - Part 86 of 185

  • 1. Ring Documentation, Release 1.5.4 • 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) 825
  • 2. Ring Documentation, Release 1.5.4 • 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) 826
  • 3. Ring Documentation, Release 1.5.4 • 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) 827
  • 4. Ring Documentation, Release 1.5.4 • 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) 828
  • 5. CHAPTER SEVENTYFIVE 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) 829
  • 6. Ring Documentation, Release 1.5.4 • 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) 830
  • 7. Ring Documentation, Release 1.5.4 • 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) 831
  • 8. Ring Documentation, Release 1.5.4 • 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) 832
  • 9. Ring Documentation, Release 1.5.4 • int SDL_SetTextureAlphaMod(SDL_Texture *texture,Uint8 alpha) • int SDL_SetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode blendMode) • int SDL_SetTextureColorMod(SDL_Texture *texture,Uint8 r,Uint8 g,Uint8 b) • void SDL_UnlockTexture(SDL_Texture *texture) • int SDL_UpdateTexture(SDL_Texture *texture,const SDL_Rect *rect,const void*pixels,int pitch) • int SDL_UpdateYUVTexture(SDL_Texture *texture,const SDL_Rect *rect,const Uint8 *Yplane,int Yp- itch,const Uint8 *Uplane,int Upitch,const Uint8 *Vplane,int Vpitch) • SDL_PixelFormat *SDL_AllocFormat(Uint32 pixel_format) • SDL_Palette *SDL_AllocPalette(int ncolors) • void SDL_CalculateGammaRamp(float gamma,Uint16 *ramp) • void SDL_FreeFormat(SDL_PixelFormat *format) • void SDL_FreePalette(SDL_Palette *palette) • const char *SDL_GetPixelFormatName(Uint32 format) • void SDL_GetRGB(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b) • void SDL_GetRGBA(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a) • Uint32 SDL_MapRGB(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b) • Uint32 SDL_MapRGBA(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b, Uint8 a) • Uint32 SDL_MasksToPixelFormatEnum(int bpp,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) • SDL_bool SDL_PixelFormatEnumToMasks(Uint32 format,int *bpp,Uint32 *Rmask,Uint32 *Gmask,Uint32 *Bmask,Uint32 *Amask) • int SDL_SetPaletteColors(SDL_Palette *palette,const SDL_Color *colors,int firstcolor,int ncolors) • int SDL_SetPixelFormatPalette(SDL_PixelFormat *format,SDL_Palette *palette) • SDL_bool SDL_EnclosePoints(const SDL_Point* points,int count,const SDL_Rect *clip,SDL_Rect *result) • SDL_bool SDL_HasIntersection(const SDL_Rect *A,const SDL_Rect *B) • SDL_bool SDL_IntersectRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result) • SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect,int *X1,int *Y1,int *X2,int *Y2) • SDL_bool SDL_RectEquals(const SDL_Rect *a,const SDL_Rect *b) • void SDL_UnionRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result) • int SDL_BlitScaled(SDL_Surface *src,const SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_BlitSurface(SDL_Surface src,const SDL_Rect srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_ConvertPixels(int width,int height,Uint32 src_format,const void *src,int src_pitch,Uint32 dst_format,void *dst,int dst_pitch) • SDL_Surface *SDL_ConvertSurface(SDL_Surface *src,const SDL_PixelFormat *fmt,Uint32 flags) • SDL_Surface *SDL_ConvertSurfaceFormat(SDL_Surface *src,Uint32 pixel_format,Uint32 flags) • SDL_Surface *SDL_CreateRGBSurface(Uint32 flags,int width,int height,int depth,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) • SDL_Surface* SDL_CreateRGBSurfaceFrom(void *pixels,int width,int height,int depth,int pitch,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) 833
  • 10. Ring Documentation, Release 1.5.4 • int SDL_FillRect(SDL_Surface *dst,const SDL_Rect *rect,Uint32 color) • int SDL_FillRects(SDL_Surface *dst,const SDL_Rect *rects,int count,Uint32 color) • void SDL_FreeSurface(SDL_Surface *surface) • void SDL_GetClipRect(SDL_Surface *surface,SDL_Rect *rect) • int SDL_GetColorKey(SDL_Surface *surface,Uint32 *key) • int SDL_GetSurfaceAlphaMod(SDL_Surface *surface,Uint8 *alpha) • int SDL_GetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode *blendMode) • int SDL_GetSurfaceColorMod(SDL_Surface *surface,Uint8 *r,Uint8 *g,Uint8 *b) • SDL_Surface *SDL_LoadBMP(const char *file) • SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src,int freesrc) • int SDL_LockSurface(SDL_Surface *surface) • int SDL_LowerBlit(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_LowerBlitScaled(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • SDL_bool SDL_MUSTLOCK(SDL_Surface *surface) • int SDL_SaveBMP(SDL_Surface *surface,const char *file) • int SDL_SaveBMP_RW(SDL_Surface *surface,SDL_RWops *dst,int freedst) • SDL_bool SDL_SetClipRect(SDL_Surface *surface,const SDL_Rect *rect) • int SDL_SetColorKey(SDL_Surface *surface,int flag,Uint32 key) • int SDL_SetSurfaceAlphaMod(SDL_Surface *surface,Uint8 alpha) • int SDL_SetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode blendMode) • int SDL_SetSurfaceColorMod(SDL_Surface *surface,Uint8 r,Uint8 g,Uint8 b) • int SDL_SetSurfacePalette(SDL_Surface *surface,SDL_Palette *palette) • int SDL_SetSurfaceRLE(SDL_Surface *surface,int flag) • void SDL_UnlockSurface(SDL_Surface* surface) • SDL_bool SDL_GetWindowWMInfo(SDL_Window *window,SDL_SysWMinfo *info) • char *SDL_GetClipboardText(void) • SDL_bool SDL_HasClipboardText(void) • int SDL_SetClipboardText(const char *text) • void SDL_AddEventWatch(SDL_EventFilter filter,void *userdata) • void SDL_DelEventWatch(SDL_EventFilter filter,void *userdata) • Uint8 SDL_EventState(Uint32 type,int state) • void SDL_FilterEvents(SDL_EventFilter filter,void *userdata) • void SDL_FlushEvent(Uint32 type) • void SDL_FlushEvents(Uint32 minType,Uint32 maxType) • SDL_bool SDL_GetEventFilter(SDL_EventFilter *filter,void **userdata) • Uint8 SDL_GetEventState(Uint32 type) 834