This document provides documentation for the SDL and SDL_image libraries, describing various functions for graphics, audio, input, threading and file I/O. It includes functions for surfaces, rendering, events, joysticks, audio, file loading and more.
8. Ring Documentation, Release 1.5.2
• int IMG_isPCX(SDL_RWops *src)
• int IMG_isGIF(SDL_RWops *src)
• int IMG_isJPG(SDL_RWops *src)
• int IMG_isTIF(SDL_RWops *src)
• int IMG_isPNG(SDL_RWops *src)
• int IMG_isLBM(SDL_RWops *src)
• int IMG_isXV(SDL_RWops *src)
• int TTF_Init(void)
• int TTF_WasInit(void)
• void TTF_Quit(void)
• TTF_Font *TTF_OpenFont(const char *file, int ptsize)
• TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
• TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index)
• TTF_Font *TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index)
• void TTF_CloseFont(TTF_Font *font)
• void TTF_ByteSwappedUNICODE(int swapped)
• int TTF_GetFontStyle(TTF_Font *font)
• void TTF_SetFontStyle(TTF_Font *font, int style)
• int TTF_GetFontOutline(TTF_Font *font)
• void TTF_SetFontOutline(TTF_Font *font, int outline)
• int TTF_GetFontHinting(TTF_Font *font)
• void TTF_SetFontHinting(TTF_Font *font, int hinting)
• int TTF_GetFontKerning(TTF_Font *font)
• void TTF_SetFontKerning(TTF_Font *font, int allowed)
• int TTF_FontHeight(const TTF_Font *font)
• int TTF_FontAscent(const TTF_Font *font)
• int TTF_FontDescent(const TTF_Font *font)
• int TTF_FontLineSkip(const TTF_Font *font)
• long TTF_FontFaces(const TTF_Font *font)
• int TTF_FontFaceIsFixedWidth(const TTF_Font *font)
• char *TTF_FontFaceFamilyName(const TTF_Font *font)
• char *TTF_FontFaceStyleName(const TTF_Font *font)
• int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
• int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
• int TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
• int TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h)
812
9. Ring Documentation, Release 1.5.2
• int TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
• SDL_Surface *TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg)
• SDL_Surface *TTF_RenderText_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text,SDL_Color fg,
SDL_Color bg)
• SDL_Surface *TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg,SDL_Color bg)
• SDL_Surface *TTF_RenderText_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg)
• int Mix_Init(int flags)
• void Mix_Quit(void)
• int Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize)
• void Mix_CloseAudio(void)
• int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels)
• int Mix_GetNumChunkDecoders(void)
• const char *Mix_GetChunkDecoder(int index)
• Mix_Chunk *Mix_LoadWAV(char *file)
• Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
• Mix_Chunk *Mix_QuickLoad_WAV(Uint8 *mem)
• void Mix_FreeChunk(Mix_Chunk *chunk)
• int Mix_AllocateChannels(int numchans)
• int Mix_Volume(int channel, int volume)
• int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
• int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks)
• int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms)
• int Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk,int loops, int ms, int ticks)
• void Mix_Pause(int channel)
• void Mix_Resume(int channel)
• int Mix_HaltChannel(int channel)
• int Mix_ExpireChannel(int channel, int ticks)
• int Mix_FadeOutChannel(int channel, int ms)
813
10. Ring Documentation, Release 1.5.2
• int Mix_Paused(int channel)
• Mix_Fading Mix_FadingChannel(int which)
• Mix_Chunk *Mix_GetChunk(int channel)
• int Mix_ReserveChannels(int num)
• int Mix_GroupChannel(int which, int tag)
• int Mix_GroupChannels(int from, int to, int tag)
• int Mix_GroupCount(int tag)
• int Mix_GroupAvailable(int tag)
• int Mix_GroupOldest(int tag)
• int Mix_GroupNewer(int tag)
• int Mix_FadeOutGroup(int tag, int ms)
• int Mix_HaltGroup(int tag)
• int Mix_GetNumMusicDecoders(void)
• const char *Mix_GetMusicDecoder(int index)
• Mix_Music *Mix_LoadMUS(const char *file)
• void Mix_FreeMusic(Mix_Music *music)
• int Mix_PlayMusic(Mix_Music *music, int loops)
• int Mix_FadeInMusic(Mix_Music *music, int loops, int ms)
• int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position)
• int Mix_PlayingMusic(void)
• int Mix_PausedMusic(void)
• Mix_Fading Mix_FadingMusic(void)
• void *Mix_GetMusicHookData(void)
• int Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d,void *arg)
• int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f)
• int Mix_UnregisterAllEffects(int channel)
• int Mix_SetDistance(int channel, Uint8 distance)
• int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance)
• int Mix_SetReverseStereo(int channel, int flip)
• int SDLNet_Init(void)
• void SDLNet_Quit(void)
• char *SDLNet_GetError(void)
• void SDLNet_Write16(Uint16 value, void *area)
• void SDLNet_Write32(Uint32 value, void *area)
• Uint16 SDLNet_Read16(void *area)
• Uint32 SDLNet_Read32(void *area)
814