sdl2/generated/lib_sdl_stdinc
library
Functions
-
sdlAbs(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_abs(int x)
-
sdlAcos(double x)
→ double
-
Use this function to compute arc cosine of
x
.
-
sdlAcosf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_acosf(float x)
-
sdlAsin(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_asin(double x)
-
sdlAsinf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_asinf(float x)
-
sdlAsprintf(Pointer<Pointer<Int8>> strp, String? fmt, Pointer<NativeType> arg2)
→ int
-
extern DECLSPEC int SDLCALL SDL_asprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2)
-
sdlAtan(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_atan(double x)
-
sdlAtan2(double y, double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_atan2(double y, double x)
-
sdlAtan2f(double y, double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_atan2f(float y, float x)
-
sdlAtanf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_atanf(float x)
-
sdlAtof(String? str)
→ double
-
extern DECLSPEC double SDLCALL SDL_atof(const char *str)
-
sdlAtoi(String? str)
→ int
-
extern DECLSPEC int SDLCALL SDL_atoi(const char *str)
-
sdlBsearch(Pointer<NativeType> key, Pointer<NativeType> base, int nmemb, int size, Pointer<NativeType> compare)
→ Pointer<NativeType>
-
extern DECLSPEC void * SDLCALL SDL_bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *))
-
sdlCalloc(int nmemb, int size)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
-
sdlCeil(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_ceil(double x)
-
sdlCeilf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_ceilf(float x)
-
sdlCopysign(double x, double y)
→ double
-
extern DECLSPEC double SDLCALL SDL_copysign(double x, double y)
-
sdlCopysignf(double x, double y)
→ double
-
extern DECLSPEC float SDLCALL SDL_copysignf(float x, float y)
-
sdlCos(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_cos(double x)
-
sdlCosf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_cosf(float x)
-
sdlCrc16(int crc, Pointer<NativeType> data, int len)
→ int
-
extern DECLSPEC Uint16 SDLCALL SDL_crc16(Uint16 crc, const void *data, size_t len)
-
sdlCrc32(int crc, Pointer<NativeType> data, int len)
→ int
-
extern DECLSPEC Uint32 SDLCALL SDL_crc32(Uint32 crc, const void *data, size_t len)
-
sdlExp(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_exp(double x)
-
sdlExpf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_expf(float x)
-
sdlFabs(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_fabs(double x)
-
sdlFabsf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_fabsf(float x)
-
sdlFloor(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_floor(double x)
-
sdlFloorf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_floorf(float x)
-
sdlFmod(double x, double y)
→ double
-
extern DECLSPEC double SDLCALL SDL_fmod(double x, double y)
-
sdlFmodf(double x, double y)
→ double
-
extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y)
-
sdlFree(Pointer<NativeType> mem)
→ void
-
extern DECLSPEC void SDLCALL SDL_free(void *mem)
-
sdlGetenv(String? name)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_getenv(const char *name)
-
sdlGetMemoryFunctions(Pointer<Pointer<NativeFunction<SdlMallocFunc>>> mallocFunc, Pointer<Pointer<NativeFunction<SdlCallocFunc>>> callocFunc, Pointer<Pointer<NativeFunction<SdlReallocFunc>>> reallocFunc, Pointer<Pointer<NativeFunction<SdlFreeFunc>>> freeFunc)
→ void
-
Get the current set of SDL memory functions
-
sdlGetNumAllocations()
→ int
-
Get the number of outstanding (unfreed) allocations
-
sdlGetOriginalMemoryFunctions(Pointer<Pointer<NativeFunction<SdlMallocFunc>>> mallocFunc, Pointer<Pointer<NativeFunction<SdlCallocFunc>>> callocFunc, Pointer<Pointer<NativeFunction<SdlReallocFunc>>> reallocFunc, Pointer<Pointer<NativeFunction<SdlFreeFunc>>> freeFunc)
→ void
-
Get the original set of SDL memory functions
-
sdlIconv(Pointer<SdlIconvT> cd, Pointer<Pointer<Int8>> inbuf, Pointer<Uint32> inbytesleft, Pointer<Pointer<Int8>> outbuf, Pointer<Uint32> outbytesleft)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t * inbytesleft, char **outbuf, size_t * outbytesleft)
-
sdlIconvClose(Pointer<SdlIconvT> cd)
→ int
-
extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd)
-
sdlIconvOpen(String? tocode, String? fromcode)
→ Pointer<SdlIconvT>
-
extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode)
-
sdlIconvString(String? tocode, String? fromcode, String? inbuf, int inbytesleft)
→ Pointer<Int8>
-
This function converts a buffer or string between encodings in one pass,
returning a string that must be freed with SDL_free() or NULL on error.
-
sdlIsalnum(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isalnum(int x)
-
sdlIsalpha(int x)
→ int
-
NOTE: these double-evaluate their arguments, so you should never have side effects in the parameters
-
sdlIsblank(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isblank(int x)
-
sdlIscntrl(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_iscntrl(int x)
-
sdlIsdigit(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isdigit(int x)
-
sdlIsgraph(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isgraph(int x)
-
sdlIslower(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_islower(int x)
-
sdlIsprint(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isprint(int x)
-
sdlIspunct(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_ispunct(int x)
-
sdlIsspace(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isspace(int x)
-
sdlIsupper(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isupper(int x)
-
sdlIsxdigit(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_isxdigit(int x)
-
sdlItoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix)
-
sdlLltoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_lltoa(Sint64 value, char *str, int radix)
-
sdlLog10(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_log10(double x)
-
sdlLog10f(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_log10f(float x)
-
sdlLogf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_logf(float x)
-
sdlLround(double x)
→ int
-
extern DECLSPEC long SDLCALL SDL_lround(double x)
-
sdlLroundf(double x)
→ int
-
extern DECLSPEC long SDLCALL SDL_lroundf(float x)
-
sdlLtoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_ltoa(long value, char *str, int radix)
-
sdlMalloc(int size)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_malloc(size_t size)
-
sdlMemcmp(Pointer<NativeType> s1, Pointer<NativeType> s2, int len)
→ int
-
extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len)
-
sdlMemcpy(Pointer<NativeType> arg0, Pointer<NativeType> arg1, int len)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_memcpy(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
-
sdlMemmove(Pointer<NativeType> arg0, Pointer<NativeType> arg1, int len)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
-
sdlMemset(Pointer<NativeType> arg0, int c, int len)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len)
-
sdlPow(double x, double y)
→ double
-
extern DECLSPEC double SDLCALL SDL_pow(double x, double y)
-
sdlPowf(double x, double y)
→ double
-
extern DECLSPEC float SDLCALL SDL_powf(float x, float y)
-
sdlQsort(Pointer<NativeType> base, int nmemb, int size, Pointer<NativeType> compare)
→ void
-
extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *))
-
sdlRealloc(Pointer<NativeType> mem, int size)
→ Pointer<NativeType>
-
extern DECLSPEC void *SDLCALL SDL_realloc(void *mem, size_t size)
-
sdlRound(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_round(double x)
-
sdlRoundf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_roundf(float x)
-
sdlScalbn(double x, int n)
→ double
-
extern DECLSPEC double SDLCALL SDL_scalbn(double x, int n)
-
sdlScalbnf(double x, int n)
→ double
-
extern DECLSPEC float SDLCALL SDL_scalbnf(float x, int n)
-
sdlSetenv(String? name, String? value, int overwrite)
→ int
-
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite)
-
sdlSetMemoryFunctions(Pointer<NativeFunction<SdlMallocFunc>> mallocFunc, Pointer<NativeFunction<SdlCallocFunc>> callocFunc, Pointer<NativeFunction<SdlReallocFunc>> reallocFunc, Pointer<NativeFunction<SdlFreeFunc>> freeFunc)
→ int
-
Replace SDL's memory allocation functions with a custom set
-
sdlSin(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_sin(double x)
-
sdlSinf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_sinf(float x)
-
sdlSnprintf(Pointer<NativeType> arg0, int maxlen, String? fmt, Pointer<NativeType> arg3)
→ int
-
extern DECLSPEC int SDLCALL SDL_snprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ... ) SDL_PRINTF_VARARG_FUNC(3)
-
sdlSqrt(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_sqrt(double x)
-
sdlSqrtf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_sqrtf(float x)
-
sdlSscanf(String? text, String? fmt, Pointer<NativeType> arg2)
→ int
-
extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, ...) SDL_SCANF_VARARG_FUNC(2)
-
sdlStrcasecmp(String? str1, String? str2)
→ int
-
extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2)
-
sdlStrcasestr(String? haystack, String? needle)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strcasestr(const char *haystack, const char *needle)
-
sdlStrchr(String? str, int c)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c)
-
sdlStrcmp(String? str1, String? str2)
→ int
-
extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2)
-
sdlStrdup(String? str)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strdup(const char *str)
-
sdlStrlcat(Pointer<NativeType> arg0, String? src, int maxlen)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_strlcat(SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
-
sdlStrlcpy(Pointer<NativeType> arg0, String? src, int maxlen)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
-
sdlStrlen(String? str)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_strlen(const char *str)
-
sdlStrlwr(Pointer<Int8> str)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strlwr(char *str)
-
sdlStrncasecmp(String? str1, String? str2, int len)
→ int
-
extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t len)
-
sdlStrncmp(String? str1, String? str2, int maxlen)
→ int
-
extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen)
-
sdlStrrchr(String? str, int c)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c)
-
sdlStrrev(Pointer<Int8> str)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strrev(char *str)
-
sdlStrstr(String? haystack, String? needle)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle)
-
sdlStrtod(String? str, Pointer<Pointer<Int8>> endp)
→ double
-
extern DECLSPEC double SDLCALL SDL_strtod(const char *str, char **endp)
-
sdlStrtokr(Pointer<Int8> s1, String? s2, Pointer<Pointer<Int8>> saveptr)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strtokr(char *s1, const char *s2, char **saveptr)
-
sdlStrtol(String? str, Pointer<Pointer<Int8>> endp, int base)
→ int
-
extern DECLSPEC long SDLCALL SDL_strtol(const char *str, char **endp, int base)
-
sdlStrtoll(String? str, Pointer<Pointer<Int8>> endp, int base)
→ int
-
extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *str, char **endp, int base)
-
sdlStrtoul(String? str, Pointer<Pointer<Int8>> endp, int base)
→ int
-
extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *str, char **endp, int base)
-
sdlStrtoull(String? str, Pointer<Pointer<Int8>> endp, int base)
→ int
-
extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *str, char **endp, int base)
-
sdlStrupr(Pointer<Int8> str)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_strupr(char *str)
-
sdlTan(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_tan(double x)
-
sdlTanf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_tanf(float x)
-
sdlTolower(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_tolower(int x)
-
sdlToupper(int x)
→ int
-
extern DECLSPEC int SDLCALL SDL_toupper(int x)
-
sdlTrunc(double x)
→ double
-
extern DECLSPEC double SDLCALL SDL_trunc(double x)
-
sdlTruncf(double x)
→ double
-
extern DECLSPEC float SDLCALL SDL_truncf(float x)
-
sdlUitoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix)
-
sdlUlltoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix)
-
sdlUltoa(int value, Pointer<Int8> str, int radix)
→ Pointer<Int8>
-
extern DECLSPEC char *SDLCALL SDL_ultoa(unsigned long value, char *str, int radix)
-
sdlUtf8strlcpy(Pointer<NativeType> arg0, String? src, int dstBytes)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes)
-
sdlUtf8strlen(String? str)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str)
-
sdlUtf8strnlen(String? str, int bytes)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_utf8strnlen(const char *str, size_t bytes)
-
sdlVasprintf(Pointer<Pointer<Int8>> strp, String? fmt, Pointer<NativeType> arg2)
→ int
-
extern DECLSPEC int SDLCALL SDL_vasprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(2)
-
sdlVsnprintf(Pointer<NativeType> arg0, int maxlen, String? fmt, Pointer<NativeType> arg3)
→ int
-
extern DECLSPEC int SDLCALL SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(3)
-
sdlVsscanf(String? text, String? fmt, Pointer<NativeType> arg2)
→ int
-
extern DECLSPEC int SDLCALL SDL_vsscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, va_list ap) SDL_SCANF_VARARG_FUNCV(2)
-
sdlWcscasecmp(Pointer<Int16> str1, Pointer<Int16> str2)
→ int
-
extern DECLSPEC int SDLCALL SDL_wcscasecmp(const wchar_t *str1, const wchar_t *str2)
-
sdlWcscmp(Pointer<Int16> str1, Pointer<Int16> str2)
→ int
-
extern DECLSPEC int SDLCALL SDL_wcscmp(const wchar_t *str1, const wchar_t *str2)
-
sdlWcsdup(Pointer<Int16> wstr)
→ Pointer<Int16>
-
extern DECLSPEC wchar_t *SDLCALL SDL_wcsdup(const wchar_t *wstr)
-
sdlWcslcat(Pointer<NativeType> arg0, Pointer<Int16> src, int maxlen)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_wcslcat(SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
-
sdlWcslcpy(Pointer<NativeType> arg0, Pointer<Int16> src, int maxlen)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_wcslcpy(SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
-
sdlWcslen(Pointer<Int16> wstr)
→ int
-
extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *wstr)
-
sdlWcsncasecmp(Pointer<Int16> str1, Pointer<Int16> str2, int len)
→ int
-
extern DECLSPEC int SDLCALL SDL_wcsncasecmp(const wchar_t *str1, const wchar_t *str2, size_t len)
-
sdlWcsncmp(Pointer<Int16> str1, Pointer<Int16> str2, int maxlen)
→ int
-
extern DECLSPEC int SDLCALL SDL_wcsncmp(const wchar_t *str1, const wchar_t *str2, size_t maxlen)
-
sdlWcsstr(Pointer<Int16> haystack, Pointer<Int16> needle)
→ Pointer<Int16>
-
extern DECLSPEC wchar_t *SDLCALL SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle)