SDL
2.0
|
#include "SDL_config.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <inttypes.h>
#include <ctype.h>
#include <math.h>
#include "begin_code.h"
#include <alloca.h>
#include "close_code.h"
Go to the source code of this file.
Macros | |
#define | SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) |
#define | SDL_TABLESIZE(table) SDL_arraysize(table) |
#define | SDL_STRINGIFY_ARG(arg) #arg |
#define | SDL_FOURCC(A, B, C, D) |
#define | SDL_PRIs64 "I64d" |
#define | SDL_PRIu64 "I64u" |
#define | SDL_PRIx64 "I64x" |
#define | SDL_PRIX64 "I64X" |
#define | SDL_IN_BYTECAP(x) |
#define | SDL_INOUT_Z_CAP(x) |
#define | SDL_OUT_Z_CAP(x) |
#define | SDL_OUT_CAP(x) |
#define | SDL_OUT_BYTECAP(x) |
#define | SDL_OUT_Z_BYTECAP(x) |
#define | SDL_PRINTF_FORMAT_STRING |
#define | SDL_SCANF_FORMAT_STRING |
#define | SDL_PRINTF_VARARG_FUNC(fmtargnumber) |
#define | SDL_SCANF_VARARG_FUNC(fmtargnumber) |
#define | SDL_COMPILE_TIME_ASSERT(name, x) typedef int SDL_dummy_ ## name[(x) * 2 - 1] |
#define | SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) |
#define | SDL_stack_free(data) |
#define | SDL_min(x, y) (((x) < (y)) ? (x) : (y)) |
#define | SDL_max(x, y) (((x) > (y)) ? (x) : (y)) |
#define | SDL_zero(x) SDL_memset(&(x), 0, sizeof((x))) |
#define | SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x))) |
#define | SDL_ICONV_ERROR (size_t)-1 |
#define | SDL_ICONV_E2BIG (size_t)-2 |
#define | SDL_ICONV_EILSEQ (size_t)-3 |
#define | SDL_ICONV_EINVAL (size_t)-4 |
#define | SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1) |
#define | SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2-INTERNAL", "UTF-8", S, SDL_strlen(S)+1) |
#define | SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4-INTERNAL", "UTF-8", S, SDL_strlen(S)+1) |
Cast operators | |
Use proper C++ casts when compiled as C++ to be compatible with the option -Wold-style-cast of GCC (and -Werror=old-style-cast in GCC 4.2 and above). | |
#define | SDL_reinterpret_cast(type, expression) ((type)(expression)) |
#define | SDL_static_cast(type, expression) ((type)(expression)) |
#define | SDL_const_cast(type, expression) ((type)(expression)) |
Functions | |
void * | SDL_malloc (size_t size) |
void * | SDL_calloc (size_t nmemb, size_t size) |
void * | SDL_realloc (void *mem, size_t size) |
void | SDL_free (void *mem) |
char * | SDL_getenv (const char *name) |
int | SDL_setenv (const char *name, const char *value, int overwrite) |
void | SDL_qsort (void *base, size_t nmemb, size_t size, int(*compare)(const void *, const void *)) |
int | SDL_abs (int x) |
int | SDL_isdigit (int x) |
int | SDL_isspace (int x) |
int | SDL_toupper (int x) |
int | SDL_tolower (int x) |
void * | SDL_memset (SDL_OUT_BYTECAP(len) void *dst, int c, size_t len) |
SDL_FORCE_INLINE void | SDL_memset4 (void *dst, Uint32 val, size_t dwords) |
void * | SDL_memcpy (SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len) |
void * | SDL_memmove (SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len) |
int | SDL_memcmp (const void *s1, const void *s2, size_t len) |
size_t | SDL_wcslen (const wchar_t *wstr) |
size_t | SDL_wcslcpy (SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen) |
size_t | SDL_wcslcat (SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen) |
size_t | SDL_strlen (const char *str) |
size_t | SDL_strlcpy (SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen) |
size_t | SDL_utf8strlcpy (SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes) |
size_t | SDL_strlcat (SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen) |
char * | SDL_strdup (const char *str) |
char * | SDL_strrev (char *str) |
char * | SDL_strupr (char *str) |
char * | SDL_strlwr (char *str) |
char * | SDL_strchr (const char *str, int c) |
char * | SDL_strrchr (const char *str, int c) |
char * | SDL_strstr (const char *haystack, const char *needle) |
char * | SDL_itoa (int value, char *str, int radix) |
char * | SDL_uitoa (unsigned int value, char *str, int radix) |
char * | SDL_ltoa (long value, char *str, int radix) |
char * | SDL_ultoa (unsigned long value, char *str, int radix) |
char * | SDL_lltoa (Sint64 value, char *str, int radix) |
char * | SDL_ulltoa (Uint64 value, char *str, int radix) |
int | SDL_atoi (const char *str) |
double | SDL_atof (const char *str) |
long | SDL_strtol (const char *str, char **endp, int base) |
unsigned long | SDL_strtoul (const char *str, char **endp, int base) |
Sint64 | SDL_strtoll (const char *str, char **endp, int base) |
Uint64 | SDL_strtoull (const char *str, char **endp, int base) |
double | SDL_strtod (const char *str, char **endp) |
int | SDL_strcmp (const char *str1, const char *str2) |
int | SDL_strncmp (const char *str1, const char *str2, size_t maxlen) |
int | SDL_strcasecmp (const char *str1, const char *str2) |
int | SDL_strncasecmp (const char *str1, const char *str2, size_t len) |
int | SDL_sscanf (const char *text, SDL_SCANF_FORMAT_STRING const char *fmt,...) SDL_SCANF_VARARG_FUNC(2) |
int | SDL_vsscanf (const char *text, const char *fmt, va_list ap) |
int | SDL_snprintf (SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(3) |
int | SDL_vsnprintf (SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt, va_list ap) |
double | SDL_acos (double x) |
double | SDL_asin (double x) |
double | SDL_atan (double x) |
double | SDL_atan2 (double x, double y) |
double | SDL_ceil (double x) |
double | SDL_copysign (double x, double y) |
double | SDL_cos (double x) |
float | SDL_cosf (float x) |
double | SDL_fabs (double x) |
double | SDL_floor (double x) |
double | SDL_log (double x) |
double | SDL_pow (double x, double y) |
double | SDL_scalbn (double x, int n) |
double | SDL_sin (double x) |
float | SDL_sinf (float x) |
double | SDL_sqrt (double x) |
float | SDL_sqrtf (float x) |
double | SDL_tan (double x) |
float | SDL_tanf (float x) |
SDL_iconv_t | SDL_iconv_open (const char *tocode, const char *fromcode) |
int | SDL_iconv_close (SDL_iconv_t cd) |
size_t | SDL_iconv (SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
char * | SDL_iconv_string (const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft) |
SDL_FORCE_INLINE void * | SDL_memcpy4 (SDL_OUT_BYTECAP(dwords *4) void *dst, SDL_IN_BYTECAP(dwords *4) const void *src, size_t dwords) |
Basic data types | |
enum | SDL_bool { SDL_FALSE = 0, SDL_TRUE = 1 } |
typedef int8_t | Sint8 |
A signed 8-bit integer type. More... | |
typedef uint8_t | Uint8 |
An unsigned 8-bit integer type. More... | |
typedef int16_t | Sint16 |
A signed 16-bit integer type. More... | |
typedef uint16_t | Uint16 |
An unsigned 16-bit integer type. More... | |
typedef int32_t | Sint32 |
A signed 32-bit integer type. More... | |
typedef uint32_t | Uint32 |
An unsigned 32-bit integer type. More... | |
typedef int64_t | Sint64 |
A signed 64-bit integer type. More... | |
typedef uint64_t | Uint64 |
An unsigned 64-bit integer type. More... | |
This is a general header that includes C language support.
Definition in file SDL_stdinc.h.
The number of elements in an array.
Definition at line 90 of file SDL_stdinc.h.
Referenced by __kernel_rem_pio2(), get_audio_device(), IMA_ADPCM_decode(), main(), main_testInitQuitSubSystem(), open_audio_device(), SDL_AudioQuit(), SDL_GameControllerAddMappingsFromRW(), SDL_GameControllerEventState(), SDL_GetErrorMsg(), SDL_GetNumAudioDrivers(), SDL_GetNumRenderDrivers(), SDL_GetNumVideoDrivers(), SDL_GetScancodeFromName(), SDL_iconv_open(), SDL_JoystickEventState(), SDL_LogOutput(), SDL_PromptAssertion(), SDL_RemoveAudioDevice(), SDL_SendEditingText(), SDL_SendKeyboardText(), SDL_StopEventLoop(), SDL_SYS_MFIJoystickUpdate(), SDL_WasInit(), SDLTest_CommonInit(), surface_testCompleteSurfaceConversion(), and WatchJoystick().
Definition at line 264 of file SDL_stdinc.h.
Definition at line 114 of file SDL_stdinc.h.
Referenced by SDL_strchr(), SDL_strrchr(), SDL_strstr(), and SDL_TLSSet().
#define SDL_FOURCC | ( | A, | |
B, | |||
C, | |||
D | |||
) |
Definition at line 119 of file SDL_stdinc.h.
#define SDL_ICONV_E2BIG (size_t)-2 |
Definition at line 466 of file SDL_stdinc.h.
Referenced by SDL_iconv(), and SDL_iconv_string().
#define SDL_ICONV_EILSEQ (size_t)-3 |
Definition at line 467 of file SDL_stdinc.h.
Referenced by SDL_iconv_string().
#define SDL_ICONV_EINVAL (size_t)-4 |
Definition at line 468 of file SDL_stdinc.h.
Referenced by SDL_iconv(), and SDL_iconv_string().
#define SDL_ICONV_ERROR (size_t)-1 |
Definition at line 465 of file SDL_stdinc.h.
Referenced by SDL_iconv_string().
#define SDL_iconv_utf8_locale | ( | S | ) | SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1) |
Definition at line 486 of file SDL_stdinc.h.
#define SDL_iconv_utf8_ucs2 | ( | S | ) | (Uint16 *)SDL_iconv_string("UCS-2-INTERNAL", "UTF-8", S, SDL_strlen(S)+1) |
Definition at line 487 of file SDL_stdinc.h.
#define SDL_iconv_utf8_ucs4 | ( | S | ) | (Uint32 *)SDL_iconv_string("UCS-4-INTERNAL", "UTF-8", S, SDL_strlen(S)+1) |
Definition at line 488 of file SDL_stdinc.h.
#define SDL_IN_BYTECAP | ( | x | ) |
Definition at line 246 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_INOUT_Z_CAP | ( | x | ) |
Definition at line 247 of file SDL_stdinc.h.
Referenced by SDL_memset4().
Definition at line 350 of file SDL_stdinc.h.
Referenced by drawLine(), RenderDrawLinesWithRects(), SDL_RendererEventWatch(), SDL_SendMouseButtonClicks(), SDL_SetWindowMinimumSize(), SDL_SYS_AccelerometerUpdate(), and SW_RenderFillRects().
Definition at line 349 of file SDL_stdinc.h.
Referenced by bestDollarDifference(), dequeue_audio_from_device(), queue_audio_to_device(), RenderDrawLinesWithRects(), SDL_PrintFloat(), SDL_PrintString(), SDL_PrivateSendMouseButton(), SDL_RendererEventWatch(), SDL_SetWindowMaximumSize(), SDL_strlcpy(), SDL_SYS_AccelerometerUpdate(), SDL_SYS_AddJoystickDevice(), SDL_utf8strlcpy(), SDL_vsnprintf(), SDL_WasInit(), and SDL_wcslcpy().
#define SDL_OUT_BYTECAP | ( | x | ) |
Definition at line 250 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_OUT_CAP | ( | x | ) |
Definition at line 249 of file SDL_stdinc.h.
#define SDL_OUT_Z_BYTECAP | ( | x | ) |
Definition at line 251 of file SDL_stdinc.h.
#define SDL_OUT_Z_CAP | ( | x | ) |
Definition at line 248 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_PRINTF_FORMAT_STRING |
Definition at line 252 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_PRINTF_VARARG_FUNC | ( | fmtargnumber | ) |
Definition at line 259 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_PRIs64 "I64d" |
Definition at line 179 of file SDL_stdinc.h.
Referenced by _testGenericRWopsValidations(), loop(), rwops_testFileWriteReadEndian(), SDLTest_PrintEvent(), sdltest_randomBoundaryNumberSint16(), sdltest_randomBoundaryNumberSint32(), sdltest_randomBoundaryNumberSint64(), sdltest_randomBoundaryNumberSint8(), sdltest_randomBoundaryNumberUint16(), sdltest_randomBoundaryNumberUint32(), sdltest_randomBoundaryNumberUint64(), sdltest_randomBoundaryNumberUint8(), and sdltest_randomNumber().
#define SDL_PRIu64 "I64u" |
Definition at line 190 of file SDL_stdinc.h.
Referenced by main(), rwops_testCompareRWFromMemWithRWFromFile(), rwops_testFileWriteReadEndian(), sdltest_randomNumber(), SDLTest_RunSuites(), timer_getPerformanceCounter(), and timer_getPerformanceFrequency().
#define SDL_PRIx64 "I64x" |
Definition at line 201 of file SDL_stdinc.h.
#define SDL_PRIX64 "I64X" |
Definition at line 212 of file SDL_stdinc.h.
Referenced by platform_testEndianessAndSwap(), and TestEndian().
Definition at line 112 of file SDL_stdinc.h.
#define SDL_SCANF_FORMAT_STRING |
Definition at line 253 of file SDL_stdinc.h.
Referenced by SDL_memset4().
#define SDL_SCANF_VARARG_FUNC | ( | fmtargnumber | ) |
Definition at line 260 of file SDL_stdinc.h.
Referenced by SDL_memset4().
Definition at line 328 of file SDL_stdinc.h.
Referenced by main(), RenderDrawLinesWithRects(), RenderDrawPointsWithRects(), SDL_LogMessageV(), SDL_LogOutput(), SDL_PromptAssertion(), SDL_RenderDrawLines(), SDL_RenderDrawPoints(), SDL_RenderFillRects(), SDL_RWFromFile(), SW_RenderDrawLines(), SW_RenderDrawPoints(), SW_RenderFillRects(), and UpdateEventsForDeviceRemoval().
#define SDL_stack_free | ( | data | ) |
Definition at line 329 of file SDL_stdinc.h.
Referenced by main(), RenderDrawLinesWithRects(), RenderDrawPointsWithRects(), SDL_LogMessageV(), SDL_LogOutput(), SDL_PromptAssertion(), SDL_RenderDrawLines(), SDL_RenderDrawPoints(), SDL_RenderFillRects(), SDL_RWFromFile(), SW_RenderDrawLines(), SW_RenderDrawPoints(), SW_RenderFillRects(), and UpdateEventsForDeviceRemoval().
Definition at line 113 of file SDL_stdinc.h.
Referenced by SDL_memset4(), SDL_Swap16(), SDL_Swap32(), and SDL_Swap64().
#define SDL_STRINGIFY_ARG | ( | arg | ) | #arg |
Macro useful for building other macros with strings in them
e.g. #define LOG_ERROR(X) OutputDebugString(SDL_STRINGIFY_ARG(FUNCTION) ": " X "\n")
Definition at line 98 of file SDL_stdinc.h.
#define SDL_TABLESIZE | ( | table | ) | SDL_arraysize(table) |
Definition at line 91 of file SDL_stdinc.h.
#define SDL_zero | ( | x | ) | SDL_memset(&(x), 0, sizeof((x))) |
Definition at line 359 of file SDL_stdinc.h.
Referenced by SDL_BApp::_HandleKey(), _testGenericRWopsValidations(), GetMouseClickState(), main(), RunFIFOTest(), rwops_testMem(), SDL_AddAudioDevice(), SDL_AddBasicVideoDisplay(), SDL_AudioInit(), SDL_AudioQuit(), SDL_GestureAddTouch(), SDL_GetWindowPosition(), SDL_JoystickGetDeviceGUID(), SDL_JoystickGetGUID(), SDL_LoadWAV_RW(), SDL_OpenedAudioDeviceDisconnected(), SDL_PromptAssertion(), SDL_RenderSetClipRect(), SDL_SendDrop(), SDL_SetRenderTarget(), SDL_SetWindowDisplayMode(), SDL_SetWindowPosition(), SDL_ShowSimpleMessageBox(), SDL_SYS_JoystickGetDeviceGUID(), SDL_SYS_JoystickGetGUID(), SDL_UpdateFullscreenMode(), SDL_vsnprintf(), and SDLTest_CommonInit().
#define SDL_zerop | ( | x | ) | SDL_memset((x), 0, sizeof(*(x))) |
Definition at line 360 of file SDL_stdinc.h.
Referenced by SDL_BuildAudioCVT(), SDL_CreateSurfaceOnStack(), SDL_CreateThreadWithStackSize(), SDL_GetErrBuf(), SDL_HapticRumbleInit(), SDL_InitFormat(), SDL_LoadWAV_RW(), SDL_MouseQuit(), and SDL_SYS_AddJoystickDevice().
A signed 16-bit integer type.
Definition at line 147 of file SDL_stdinc.h.
A signed 32-bit integer type.
Definition at line 155 of file SDL_stdinc.h.
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) a int return int return int size_t return size_t return const wchar_t return const wchar_t size_t return const char size_t return const char size_t return char return char return const char int return int char int return long char int return Sint64 |
A signed 64-bit integer type.
Definition at line 164 of file SDL_stdinc.h.
A signed 8-bit integer type.
Definition at line 139 of file SDL_stdinc.h.
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) d int return int return int size_t return size_t return const wchar_t return const wchar_t size_t return const char size_t return const char size_t return char return char return const char int return int char int return long char int return Sint64 char int return const char return const char char int return const char char int return const char char return const char const char size_t return const char const char size_t return double return double return double return double return double return double return double int return float return const char const char return SDL_iconv_t const char size_t char size_t return Uint32 int int int Uint32 Uint32 Uint32 Uint32 return SDL_Surface SDL_Surface return SDL_RWops int return SDL_Surface int return SDL_Surface Uint32 return SDL_Surface Uint8 Uint8 Uint8 return SDL_Surface Uint8 return SDL_Surface SDL_BlendMode return SDL_Surface SDL_Rect SDL_Surface Uint32 Uint32 return SDL_Surface const SDL_Rect Uint32 return SDL_Surface const SDL_Rect SDL_Surface SDL_Rect return SDL_Surface const SDL_Rect SDL_Surface const SDL_Rect return SDL_Surface SDL_Rect SDL_Surface SDL_Rect return SDL_Thread return SDL_Thread return SDL_Thread int return SDL_TLSID const void void(*) return return Uint32 SDL_TimerID return int return SDL_TouchID int return return return const char return return int return int return int SDL_DisplayMode return int const SDL_DisplayMode SDL_DisplayMode return SDL_Window const SDL_DisplayMode return SDL_Window return const void return Uint32 return SDL_Window const char SDL_Window SDL_Surface SDL_Window const char return SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window SDL_Window SDL_Window SDL_Window Uint32 return SDL_Window return SDL_Window SDL_bool SDL_Window float return SDL_Window const Uint16 const Uint16 const Uint16 |
An unsigned 16-bit integer type.
Definition at line 151 of file SDL_stdinc.h.
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) e int return int return int size_t return size_t return const wchar_t return const wchar_t size_t return const char size_t return const char size_t return char return char return const char int return int char int return long char int return Sint64 char int return const char return const char char int return const char char int return const char char return const char const char size_t return const char const char size_t return double return double return double return double return double return double return double int return float return const char const char return SDL_iconv_t const char size_t char size_t return Uint32 int int int Uint32 Uint32 Uint32 Uint32 return SDL_Surface SDL_Surface return SDL_RWops int return SDL_Surface int return SDL_Surface Uint32 return SDL_Surface Uint8 Uint8 Uint8 return SDL_Surface Uint8 return SDL_Surface SDL_BlendMode return SDL_Surface SDL_Rect SDL_Surface Uint32 Uint32 return SDL_Surface const SDL_Rect Uint32 return SDL_Surface const SDL_Rect SDL_Surface SDL_Rect return SDL_Surface const SDL_Rect SDL_Surface const SDL_Rect return SDL_Surface SDL_Rect SDL_Surface SDL_Rect return SDL_Thread return SDL_Thread return SDL_Thread int return SDL_TLSID const void void(*) return return Uint32 SDL_TimerID return int return SDL_TouchID int return return return const char return return int return int return int SDL_DisplayMode return int const SDL_DisplayMode SDL_DisplayMode return SDL_Window const SDL_DisplayMode return SDL_Window return const void return Uint32 return SDL_Window const char SDL_Window SDL_Surface SDL_Window const char return SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window SDL_Window SDL_Window SDL_Window Uint32 return SDL_Window return SDL_Window SDL_bool SDL_Window float return SDL_Window const Uint16 const Uint16 const Uint16 return SDL_Window const char return SDL_GLattr int return SDL_Window return return SDL_Window int int return SDL_GLContext SDL_RWops int return return void return int int return double return SDL_bool return int int return SDL_AudioDeviceID const void Uint32 return SDL_AudioDeviceID int float float float return SDL_JoystickID return int SDL_Rect return SDL_Window float return SDL_Window return SDL_Renderer SDL_bool return SDL_AudioDeviceID void Uint32 return Uint32 int int int Uint32 |
An unsigned 32-bit integer type.
Definition at line 159 of file SDL_stdinc.h.
An unsigned 64-bit integer type.
Definition at line 168 of file SDL_stdinc.h.
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) b int return int return int size_t return size_t return const wchar_t return const wchar_t size_t return const char size_t return const char size_t return char return char return const char int return int char int return long char int return Sint64 char int return const char return const char char int return const char char int return const char char return const char const char size_t return const char const char size_t return double return double return double return double return double return double return double int return float return const char const char return SDL_iconv_t const char size_t char size_t return Uint32 int int int Uint32 Uint32 Uint32 Uint32 return SDL_Surface SDL_Surface return SDL_RWops int return SDL_Surface int return SDL_Surface Uint32 return SDL_Surface Uint8 Uint8 Uint8 return SDL_Surface Uint8 |
An unsigned 8-bit integer type.
Definition at line 143 of file SDL_stdinc.h.
enum SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 return SDL_AudioCVT SDL_AudioFormat Uint8 int SDL_AudioFormat Uint8 int return Uint8 const Uint8 Uint32 int const char return return return return return return return return Uint32 return Uint32 SDL_Event return SDL_Event int return SDL_EventFilter void SDL_EventFilter void SDL_EventFilter void int return const char const char return SDL_JoystickGUID return int return int return SDL_GameController return int return const char return SDL_GameController SDL_GameControllerAxis return const char return SDL_GameController SDL_GameControllerButton return SDL_GameController SDL_RWops return SDL_TouchID SDL_RWops return int return int return return SDL_Joystick return SDL_Haptic SDL_Haptic return SDL_Haptic return SDL_Haptic SDL_HapticEffect return SDL_Haptic int Uint32 return SDL_Haptic int SDL_Haptic int return SDL_Haptic return SDL_Haptic return SDL_Haptic return SDL_Haptic return const char const char return const char SDL_HintCallback void int return SDL_Joystick return SDL_Joystick return const char return SDL_Joystick return SDL_Joystick return SDL_Joystick return int return SDL_Joystick int return SDL_Joystick int return return return SDL_Scancode return SDL_Scancode return SDL_Keycode return return const char return void int SDL_LogPriority SDL_LogOutputFunction void Uint32 const char const char SDL_Window return int int return SDL_Window int int return SDL_Surface int int return SDL_Cursor return int return SDL_mutex return SDL_mutex return Uint32 return SDL_sem return SDL_sem Uint32 return SDL_sem return SDL_cond SDL_cond return SDL_cond SDL_mutex Uint32 return Uint32 int Uint32 Uint32 Uint32 Uint32 return Uint32 return int return SDL_Palette const SDL_Color int int return const SDL_PixelFormat Uint8 Uint8 Uint8 return Uint32 const SDL_PixelFormat Uint8 Uint8 Uint8 float Uint16 int int return const SDL_Rect const SDL_Rect SDL_Rect return const SDL_Point int const SDL_Rect SDL_Rect return return int int Uint32 SDL_Window SDL_Renderer return SDL_Surface return SDL_Renderer SDL_RendererInfo return SDL_Renderer Uint32 int int int return SDL_Texture Uint32 int int int return SDL_Texture Uint8 Uint8 Uint8 return SDL_Texture Uint8 return SDL_Texture SDL_BlendMode return SDL_Texture const SDL_Rect const Uint8 int const Uint8 int const Uint8 int return SDL_Texture SDL_Renderer SDL_Texture return SDL_Renderer int int return SDL_Renderer const SDL_Rect return SDL_Renderer const SDL_Rect return SDL_Renderer float float return SDL_Renderer Uint8 Uint8 Uint8 Uint8 return SDL_Renderer SDL_BlendMode return SDL_Renderer return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Point int return SDL_Renderer const SDL_Rect int return SDL_Renderer const SDL_Rect int return SDL_Renderer SDL_Texture const SDL_Rect const SDL_Rect const double const SDL_Point const SDL_RendererFlip return SDL_Renderer SDL_Renderer SDL_Texture return void int return return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops return SDL_RWops Uint16 return SDL_RWops Uint32 return SDL_RWops Uint64 return const char unsigned int unsigned int unsigned int unsigned int Uint32 return SDL_Window SDL_Surface SDL_WindowShapeMode return size_t return void size_t return const char return void size_t size_t int(*) b int return int return int size_t return size_t return const wchar_t return const wchar_t size_t return const char size_t return const char size_t return char return char return const char int return int char int return long char int return Sint64 char int return const char return const char char int return const char char int return const char char return const char const char size_t return const char const char size_t return double return double return double return double return double return double return double int return float return const char const char return SDL_iconv_t const char size_t char size_t return Uint32 int int int Uint32 Uint32 Uint32 Uint32 return SDL_Surface SDL_Surface return SDL_RWops int return SDL_Surface int return SDL_Surface Uint32 return SDL_Surface Uint8 Uint8 Uint8 return SDL_Surface Uint8 return SDL_Surface SDL_BlendMode return SDL_Surface SDL_Rect SDL_Surface Uint32 Uint32 return SDL_Surface const SDL_Rect Uint32 return SDL_Surface const SDL_Rect SDL_Surface SDL_Rect return SDL_Surface const SDL_Rect SDL_Surface const SDL_Rect return SDL_Surface SDL_Rect SDL_Surface SDL_Rect return SDL_Thread return SDL_Thread return SDL_Thread int return SDL_TLSID const void void(*) return return Uint32 SDL_TimerID return int return SDL_TouchID int return return return const char return return int return int return int SDL_DisplayMode return int const SDL_DisplayMode SDL_DisplayMode return SDL_Window const SDL_DisplayMode return SDL_Window return const void return Uint32 return SDL_Window const char SDL_Window SDL_Surface SDL_Window const char return SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window int int SDL_Window SDL_Window SDL_Window SDL_Window Uint32 return SDL_Window return SDL_Window SDL_bool SDL_Window float return SDL_Window const Uint16 const Uint16 const Uint16 return SDL_Window const char return SDL_GLattr int return SDL_Window return return SDL_Window int int return SDL_GLContext SDL_RWops int return return void return int int return double return SDL_bool return int int return SDL_AudioDeviceID const void Uint32 return SDL_AudioDeviceID int float float float return SDL_JoystickID return int SDL_Rect return SDL_Window float return SDL_Window return SDL_Renderer SDL_bool return SDL_AudioDeviceID void Uint32 return Uint32 int int int Uint32 return const char SDL_bool |
Enumerator | |
---|---|
SDL_FALSE | |
SDL_TRUE |
Definition at line 130 of file SDL_stdinc.h.
int SDL_abs | ( | int | x | ) |
Definition at line 249 of file SDL_stdlib.c.
References SDL_isdigit(), SDL_isspace(), SDL_tolower(), and SDL_toupper().
double SDL_acos | ( | double | x | ) |
Definition at line 55 of file SDL_stdlib.c.
References SDL_atan(), and SDL_sqrt().
Referenced by SDL_asin(), and SDL_memset4().
double SDL_asin | ( | double | x | ) |
double SDL_atan | ( | double | x | ) |
Definition at line 35 of file SDL_stdlib.c.
References atan(), and SDL_uclibc_atan().
Referenced by SDL_acos(), and SDL_memset4().
double SDL_atan2 | ( | double | x, |
double | y | ||
) |
Definition at line 45 of file SDL_stdlib.c.
References SDL_uclibc_atan2().
Referenced by SDL_memset4().
double SDL_atof | ( | const char * | str | ) |
Definition at line 776 of file SDL_string.c.
References NULL, and SDL_strtod().
Referenced by SDL_memset4().
int SDL_atoi | ( | const char * | str | ) |
Definition at line 767 of file SDL_string.c.
References NULL, and SDL_strtol().
Referenced by SDL_memset4().
Referenced by open_audio_device(), SDL_AllocBlitMap(), SDL_CreateMutex(), SDL_CreateRGBSurfaceWithFormat(), SDL_CreateTexture(), SDL_CreateWindow(), SDL_CreateWindowFrom(), SDL_CreateWindowTexture(), SDL_EventState(), SDL_SW_CreateYUVTexture(), SDLTest_CommonCreateState(), and SW_CreateRendererForSurface().
double SDL_ceil | ( | double | x | ) |
double SDL_copysign | ( | double | x, |
double | y | ||
) |
Definition at line 106 of file SDL_stdlib.c.
References copysign, and SDL_uclibc_copysign().
Referenced by SDL_memset4().
double SDL_cos | ( | double | x | ) |
Definition at line 118 of file SDL_stdlib.c.
References cos, and SDL_uclibc_cos().
Referenced by SDL_cosf(), and SDL_memset4().
float SDL_cosf | ( | float | x | ) |
double SDL_fabs | ( | double | x | ) |
Definition at line 138 of file SDL_stdlib.c.
References fabs, and SDL_uclibc_fabs().
Referenced by SDL_memset4().
double SDL_floor | ( | double | x | ) |
Definition at line 148 of file SDL_stdlib.c.
References floor, and SDL_uclibc_floor().
Referenced by SDL_ceil(), and SDL_memset4().
Referenced by _compare(), audio_convertAudio(), clean_out_device_list(), clipboard_testClipboardTextFunctions(), clipboard_testGetClipboardText(), clipboard_testSetClipboardText(), close_audio_device(), free_audio_queue(), free_device_list(), hints_setHint(), IMA_ADPCM_decode(), IsSDLWindowEventPending(), keyboard_getScancodeFromNameNegative(), main(), MS_ADPCM_decode(), pixels_calcGammaRamp(), quit(), ReadChunk(), RLEAlphaSurface(), RLEColorkeySurface(), SDL_AddHintCallback(), SDL_AddTimer(), SDL_AllocFormat(), SDL_AllocPalette(), SDL_ClearHints(), SDL_CreateCond(), SDL_CreateMutex(), SDL_CreateSemaphore(), SDL_CreateThreadWithStackSize(), SDL_CreateWindowTexture(), SDL_DelEventWatch(), SDL_DelHintCallback(), SDL_DelTouch(), SDL_DestroyCond(), SDL_DestroyMutex(), SDL_DestroySemaphore(), SDL_DestroyTexture(), SDL_DestroyWindow(), SDL_DestroyWindowTexture(), SDL_FreeBlitMap(), SDL_FreeFormat(), SDL_FreePalette(), SDL_FreeRW(), SDL_FreeShapeTree(), SDL_FreeSurface(), SDL_FreeWAV(), SDL_GameControllerAddMapping(), SDL_GameControllerAddMappingsFromRW(), SDL_GameControllerClose(), SDL_GameControllerLoadHints(), SDL_GameControllerOpen(), SDL_GameControllerQuit(), SDL_Generic_SetTLSData(), SDL_GetErrBuf(), SDL_GL_DeleteContext(), SDL_HapticClose(), SDL_HapticOpen(), SDL_HapticOpenFromJoystick(), SDL_iconv_close(), SDL_InvalidateMap(), SDL_JoystickClose(), SDL_JoystickOpen(), SDL_LoadWAV_RW(), SDL_LogOutput(), SDL_LogResetPriorities(), SDL_MouseQuit(), SDL_PrivateAddMappingForGUID(), SDL_RemoveTimer(), SDL_RunThread(), SDL_SetClipboardText(), SDL_setenv(), SDL_SetHintWithPriority(), SDL_SetWindowData(), SDL_SetWindowTitle(), SDL_StopEventLoop(), SDL_SW_DestroyYUVTexture(), SDL_SYS_AddJoystickDevice(), SDL_SYS_RemoveJoystickDevice(), SDL_TimerQuit(), SDL_TLSCleanup(), SDL_TouchQuit(), SDL_UnRLESurface(), SDL_UpdateTextureNative(), SDL_UpdateTextureYUV(), SDL_UpdateTextureYUVPlanar(), SDL_VideoQuit(), SDL_WaitThread(), SDLTest_CommonEvent(), SDLTest_CommonQuit(), SDLTest_GenerateExecKey(), sdltest_generateRunSeed(), sdltest_randomAsciiString(), sdltest_randomAsciiStringOfSize(), sdltest_randomAsciiStringWithMaximumLength(), SDLTest_RunSuites(), SDLTest_ScreenShot(), stdlib_getsetenv(), SW_DestroyRenderer(), unifont_cleanup(), unifont_load_texture(), video_getSetWindowData(), and WatchGameController().
char* SDL_getenv | ( | const char * | name | ) |
Definition at line 212 of file SDL_getenv.c.
References i, main, NULL, SDL_setenv(), SDL_strcmp, SDL_strlen, and SDL_strncmp.
Referenced by SDL_setenv().
size_t SDL_iconv | ( | SDL_iconv_t | cd, |
const char ** | inbuf, | ||
size_t * | inbytesleft, | ||
char ** | outbuf, | ||
size_t * | outbytesleft | ||
) |
Definition at line 247 of file SDL_iconv.c.
References ENCODING_ASCII, ENCODING_LATIN1, ENCODING_UCS2BE, ENCODING_UCS2LE, ENCODING_UCS4BE, ENCODING_UCS4LE, ENCODING_UTF16, ENCODING_UTF16BE, ENCODING_UTF16LE, ENCODING_UTF16NATIVE, ENCODING_UTF32, ENCODING_UTF32BE, ENCODING_UTF32LE, ENCODING_UTF32NATIVE, ENCODING_UTF8, SDL_FALSE, SDL_ICONV_E2BIG, SDL_ICONV_EINVAL, SDL_TRUE, UNICODE_BOM, UNKNOWN_ASCII, and UNKNOWN_UNICODE.
Referenced by SDL_iconv_string().
int SDL_iconv_close | ( | SDL_iconv_t | cd | ) |
Definition at line 851 of file SDL_iconv.c.
References SDL_free().
Referenced by SDL_iconv_string().
SDL_iconv_t SDL_iconv_open | ( | const char * | tocode, |
const char * | fromcode | ||
) |
Definition at line 207 of file SDL_iconv.c.
References SDL_iconv_t::dst_fmt, ENCODING_UNKNOWN, encodings, getlocale(), i, SDL_arraysize, SDL_malloc, SDL_strcasecmp, and SDL_iconv_t::src_fmt.
Referenced by SDL_iconv_string().
char* SDL_iconv_string | ( | const char * | tocode, |
const char * | fromcode, | ||
const char * | inbuf, | ||
size_t | inbytesleft | ||
) |
This function converts a string between encodings in one pass, returning a string that must be freed with SDL_free() or NULL on error.
Definition at line 862 of file SDL_iconv.c.
References NULL, SDL_iconv(), SDL_iconv_close(), SDL_ICONV_E2BIG, SDL_ICONV_EILSEQ, SDL_ICONV_EINVAL, SDL_ICONV_ERROR, SDL_iconv_open(), SDL_malloc, SDL_memset, and SDL_realloc.
int SDL_isdigit | ( | int | x | ) |
int SDL_isspace | ( | int | x | ) |
char* SDL_itoa | ( | int | value, |
char * | str, | ||
int | radix | ||
) |
char* SDL_lltoa | ( | Sint64 | value, |
char * | str, | ||
int | radix | ||
) |
Definition at line 724 of file SDL_string.c.
References SDL_ulltoa().
Referenced by SDL_memset4(), and SDL_PrintLongLong().
double SDL_log | ( | double | x | ) |
Definition at line 158 of file SDL_stdlib.c.
References SDL_uclibc_log().
Referenced by SDL_memset4().
char* SDL_ltoa | ( | long | value, |
char * | str, | ||
int | radix | ||
) |
Definition at line 680 of file SDL_string.c.
References SDL_ultoa().
Referenced by SDL_itoa(), SDL_memset4(), and SDL_PrintLong().
Definition at line 391 of file SDL_string.c.
Referenced by SDL_memset4().
void* SDL_memcpy | ( | SDL_OUT_BYTECAP(len) void * | dst, |
SDL_IN_BYTECAP(len) const void * | src, | ||
size_t | len | ||
) |
Definition at line 314 of file SDL_string.c.
References memcpy.
Referenced by SDL_memcpy4(), SDL_memset4(), SDL_strlcpy(), SDL_utf8strlcpy(), and SDL_wcslcpy().
SDL_FORCE_INLINE void* SDL_memcpy4 | ( | SDL_OUT_BYTECAP(dwords *4) void * | dst, |
SDL_IN_BYTECAP(dwords *4) const void * | src, | ||
size_t | dwords | ||
) |
Definition at line 518 of file SDL_stdinc.h.
References SDL_memcpy().
void* SDL_memmove | ( | SDL_OUT_BYTECAP(len) void * | dst, |
SDL_IN_BYTECAP(len) const void * | src, | ||
size_t | len | ||
) |
void* SDL_memset | ( | SDL_OUT_BYTECAP(len) void * | dst, |
int | c, | ||
size_t | len | ||
) |
SDL_FORCE_INLINE void SDL_memset4 | ( | void * | dst, |
Uint32 | val, | ||
size_t | dwords | ||
) |
Definition at line 363 of file SDL_stdinc.h.
References DECLSPEC, SDL_acos(), SDL_asin(), SDL_atan(), SDL_atan2(), SDL_atof(), SDL_atoi(), SDL_ceil(), SDL_copysign(), SDL_cos(), SDL_cosf(), SDL_fabs(), SDL_floor(), SDL_IN_BYTECAP, SDL_INOUT_Z_CAP, SDL_itoa(), SDL_lltoa(), SDL_log(), SDL_ltoa(), SDL_memcmp(), SDL_memcpy(), SDL_memmove(), SDL_OUT_BYTECAP, SDL_OUT_Z_CAP, SDL_pow(), SDL_PRINTF_FORMAT_STRING, SDL_PRINTF_VARARG_FUNC, SDL_scalbn(), SDL_SCANF_FORMAT_STRING, SDL_SCANF_VARARG_FUNC, SDL_sin(), SDL_sinf(), SDL_snprintf(), SDL_sqrt(), SDL_sqrtf(), SDL_sscanf(), SDL_static_cast, SDL_strcasecmp(), SDL_strchr(), SDL_strcmp(), SDL_strdup(), SDL_strlcat(), SDL_strlcpy(), SDL_strlen(), SDL_strlwr(), SDL_strncasecmp(), SDL_strncmp(), SDL_strrchr(), SDL_strrev(), SDL_strstr(), SDL_strtod(), SDL_strtol(), SDL_strtoll(), SDL_strtoul(), SDL_strtoull(), SDL_strupr(), SDL_tan(), SDL_tanf(), SDL_uitoa(), SDL_ulltoa(), SDL_ultoa(), SDL_utf8strlcpy(), SDL_vsnprintf(), SDL_vsscanf(), SDL_wcslcat(), SDL_wcslcpy(), SDL_wcslen(), SDLCALL, and text.
Referenced by SDL_FillRect1(), SDL_FillRect2(), and SDL_FillRect4().
double SDL_pow | ( | double | x, |
double | y | ||
) |
Definition at line 168 of file SDL_stdlib.c.
References SDL_uclibc_pow().
Referenced by SDL_memset4().
void SDL_qsort | ( | void * | base, |
size_t | nmemb, | ||
size_t | size, | ||
int(*)(const void *, const void *) | compare | ||
) |
double SDL_scalbn | ( | double | x, |
int | n | ||
) |
Definition at line 178 of file SDL_stdlib.c.
References scalbn, and SDL_uclibc_scalbn().
Referenced by SDL_memset4().
int SDL_setenv | ( | const char * | name, |
const char * | value, | ||
int | overwrite | ||
) |
Definition at line 108 of file SDL_getenv.c.
References i, NULL, SDL_free(), SDL_getenv(), SDL_malloc, SDL_realloc, SDL_snprintf, SDL_strchr, SDL_strlen, and SDL_strncmp.
Referenced by SDL_getenv().
double SDL_sin | ( | double | x | ) |
Definition at line 190 of file SDL_stdlib.c.
References SDL_uclibc_sin(), and sin.
Referenced by SDL_memset4(), and SDL_sinf().
float SDL_sinf | ( | float | x | ) |
int SDL_snprintf | ( | SDL_OUT_Z_CAP(maxlen) char * | text, |
size_t | maxlen, | ||
SDL_PRINTF_FORMAT_STRING const char * | fmt, | ||
... | |||
) |
Definition at line 1273 of file SDL_string.c.
References retval, SDL_OUT_Z_CAP, and SDL_vsnprintf().
Referenced by SDL_memset4().
double SDL_sqrt | ( | double | x | ) |
Definition at line 210 of file SDL_stdlib.c.
References SDL_uclibc_sqrt().
Referenced by SDL_acos(), SDL_memset4(), and SDL_sqrtf().
float SDL_sqrtf | ( | float | x | ) |
int SDL_sscanf | ( | const char * | text, |
SDL_SCANF_FORMAT_STRING const char * | fmt, | ||
... | |||
) |
Definition at line 992 of file SDL_string.c.
References SDL_vsscanf(), and text.
Referenced by SDL_memset4().
int SDL_strcasecmp | ( | const char * | str1, |
const char * | str2 | ||
) |
char* SDL_strchr | ( | const char * | str, |
int | c | ||
) |
Definition at line 596 of file SDL_string.c.
References NULL, and SDL_const_cast.
Referenced by SDL_memset4().
int SDL_strcmp | ( | const char * | str1, |
const char * | str2 | ||
) |
Definition at line 903 of file SDL_string.c.
Referenced by SDL_memset4().
char* SDL_strdup | ( | const char * | str | ) |
Definition at line 532 of file SDL_string.c.
References SDL_malloc, SDL_strlcpy(), and SDL_strlen().
Referenced by SDL_memset4().
size_t SDL_strlcat | ( | SDL_INOUT_Z_CAP(maxlen) char * | dst, |
const char * | src, | ||
size_t | maxlen | ||
) |
Definition at line 517 of file SDL_string.c.
References SDL_strlcpy(), and SDL_strlen().
Referenced by SDL_memset4().
size_t SDL_strlcpy | ( | SDL_OUT_Z_CAP(maxlen) char * | dst, |
const char * | src, | ||
size_t | maxlen | ||
) |
Definition at line 469 of file SDL_string.c.
References SDL_memcpy(), SDL_min, and SDL_strlen().
Referenced by SDL_memset4(), SDL_PrintString(), SDL_strdup(), and SDL_strlcat().
size_t SDL_strlen | ( | const char * | str | ) |
Definition at line 410 of file SDL_string.c.
Referenced by SDL_memset4(), SDL_PrintString(), SDL_strdup(), SDL_strlcat(), SDL_strlcpy(), SDL_strrchr(), SDL_strrev(), SDL_strstr(), SDL_strtol(), SDL_strtoll(), SDL_strtoul(), SDL_strtoull(), and SDL_utf8strlcpy().
char* SDL_strlwr | ( | char * | str | ) |
Definition at line 581 of file SDL_string.c.
References SDL_tolower.
Referenced by SDL_memset4(), and SDL_PrintString().
int SDL_strncasecmp | ( | const char * | str1, |
const char * | str2, | ||
size_t | len | ||
) |
int SDL_strncmp | ( | const char * | str1, |
const char * | str2, | ||
size_t | maxlen | ||
) |
Definition at line 919 of file SDL_string.c.
Referenced by SDL_memset4(), SDL_ScanLong(), SDL_ScanLongLong(), SDL_ScanUintPtrT(), SDL_ScanUnsignedLong(), SDL_ScanUnsignedLongLong(), SDL_strstr(), SDL_strtol(), SDL_strtoll(), SDL_strtoul(), SDL_strtoull(), SDL_vsnprintf(), and SDL_vsscanf().
char* SDL_strrchr | ( | const char * | str, |
int | c | ||
) |
Definition at line 614 of file SDL_string.c.
References NULL, SDL_const_cast, and SDL_strlen().
Referenced by SDL_memset4().
char* SDL_strrev | ( | char * | str | ) |
Definition at line 547 of file SDL_string.c.
References SDL_strlen().
Referenced by SDL_memset4(), SDL_ulltoa(), and SDL_ultoa().
char* SDL_strstr | ( | const char * | haystack, |
const char * | needle | ||
) |
Definition at line 633 of file SDL_string.c.
References NULL, SDL_const_cast, SDL_strlen(), and SDL_strncmp().
Referenced by SDL_memset4().
double SDL_strtod | ( | const char * | str, |
char ** | endp | ||
) |
Definition at line 886 of file SDL_string.c.
References SDL_ScanFloat().
Referenced by SDL_atof(), and SDL_memset4().
long SDL_strtol | ( | const char * | str, |
char ** | endp, | ||
int | base | ||
) |
Definition at line 786 of file SDL_string.c.
References SDL_ScanLong(), SDL_strlen(), and SDL_strncmp().
Referenced by SDL_atoi(), SDL_memset4(), and SDL_vsnprintf().
Sint64 SDL_strtoll | ( | const char * | str, |
char ** | endp, | ||
int | base | ||
) |
Definition at line 836 of file SDL_string.c.
References SDL_ScanLongLong(), SDL_strlen(), and SDL_strncmp().
Referenced by SDL_memset4().
unsigned long SDL_strtoul | ( | const char * | str, |
char ** | endp, | ||
int | base | ||
) |
Definition at line 811 of file SDL_string.c.
References SDL_ScanUnsignedLong(), SDL_strlen(), and SDL_strncmp().
Referenced by SDL_memset4().
Uint64 SDL_strtoull | ( | const char * | str, |
char ** | endp, | ||
int | base | ||
) |
Definition at line 861 of file SDL_string.c.
References SDL_ScanUnsignedLongLong(), SDL_strlen(), and SDL_strncmp().
Referenced by SDL_memset4().
char* SDL_strupr | ( | char * | str | ) |
Definition at line 566 of file SDL_string.c.
References SDL_toupper.
Referenced by SDL_memset4(), and SDL_PrintString().
double SDL_tan | ( | double | x | ) |
Definition at line 230 of file SDL_stdlib.c.
References SDL_uclibc_tan(), and tan().
Referenced by SDL_memset4(), and SDL_tanf().
float SDL_tanf | ( | float | x | ) |
int SDL_tolower | ( | int | x | ) |
int SDL_toupper | ( | int | x | ) |
Definition at line 266 of file SDL_stdlib.c.
Referenced by SDL_abs().
char* SDL_uitoa | ( | unsigned int | value, |
char * | str, | ||
int | radix | ||
) |
char* SDL_ulltoa | ( | Uint64 | value, |
char * | str, | ||
int | radix | ||
) |
Definition at line 743 of file SDL_string.c.
References SDL_strrev().
Referenced by SDL_lltoa(), SDL_memset4(), and SDL_PrintUnsignedLongLong().
char* SDL_ultoa | ( | unsigned long | value, |
char * | str, | ||
int | radix | ||
) |
Definition at line 699 of file SDL_string.c.
References SDL_strrev().
Referenced by SDL_ltoa(), SDL_memset4(), SDL_PrintUnsignedLong(), and SDL_uitoa().
size_t SDL_utf8strlcpy | ( | SDL_OUT_Z_CAP(dst_bytes) char * | dst, |
const char * | src, | ||
size_t | dst_bytes | ||
) |
Definition at line 484 of file SDL_string.c.
References i, SDL_memcpy(), SDL_min, SDL_strlen(), UTF8_IsLeadByte, UTF8_IsTrailingByte, and UTF8_TrailingBytes().
Referenced by SDL_memset4().
int SDL_vsnprintf | ( | SDL_OUT_Z_CAP(maxlen) char * | text, |
size_t | maxlen, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 1483 of file SDL_string.c.
References done, SDL_FormatInfo::force_case, SDL_FormatInfo::force_sign, SDL_FormatInfo::force_type, SDL_FormatInfo::left_justify, SDL_FormatInfo::pad_zeroes, SDL_FormatInfo::precision, SDL_FormatInfo::radix, SDL_CASE_LOWER, SDL_CASE_NOCHANGE, SDL_CASE_UPPER, SDL_FALSE, SDL_min, SDL_PrintFloat(), SDL_PrintLong(), SDL_PrintLongLong(), SDL_PrintString(), SDL_PrintUnsignedLong(), SDL_PrintUnsignedLongLong(), SDL_strncmp(), SDL_strtol(), SDL_TRUE, SDL_zero, text, and SDL_FormatInfo::width.
Referenced by SDL_memset4(), and SDL_snprintf().
int SDL_vsscanf | ( | const char * | text, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 1010 of file SDL_string.c.
References done, retval, SDL_FALSE, SDL_isspace, SDL_ScanFloat(), SDL_ScanLong(), SDL_ScanLongLong(), SDL_ScanUintPtrT(), SDL_ScanUnsignedLong(), SDL_ScanUnsignedLongLong(), SDL_strncmp(), SDL_tolower, SDL_TRUE, and text.
Referenced by SDL_memset4(), and SDL_sscanf().
size_t SDL_wcslcat | ( | SDL_INOUT_Z_CAP(maxlen) wchar_t * | dst, |
const wchar_t * | src, | ||
size_t | maxlen | ||
) |
Definition at line 454 of file SDL_string.c.
References SDL_wcslcpy(), and SDL_wcslen().
Referenced by SDL_memset4().
size_t SDL_wcslcpy | ( | SDL_OUT_Z_CAP(maxlen) wchar_t * | dst, |
const wchar_t * | src, | ||
size_t | maxlen | ||
) |
Definition at line 438 of file SDL_string.c.
References SDL_memcpy(), SDL_min, and SDL_wcslen().
Referenced by SDL_memset4(), and SDL_wcslcat().
size_t SDL_wcslen | ( | const wchar_t * | wstr | ) |
Definition at line 424 of file SDL_string.c.
Referenced by SDL_memset4(), SDL_wcslcat(), and SDL_wcslcpy().