VSF Documented
vsf_sdl2.c File Reference

Data Structures

struct  SDL_Window
 
struct  SDL_Renderer
 
struct  SDL_Texture
 
struct  vsf_sdl2_t
 
struct  SDL_Timer
 

Macros

#define __VSF_DISP_CLASS_INHERIT__
 
#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__
 
#define __vsf_sdl2_fast_copy(__pdst, __psrc, __num)
 
#define __vsf_sdl2_fast_set(__pdst, __value, __num)
 

Typedefs

typedef struct vsf_sdl2_t vsf_sdl2_t
 
typedef struct SDL_Timer SDL_Timer
 

Functions

void vsf_sdl2_pixel_copy (uint_fast16_t data_line_num, uint_fast32_t data_line_size, uint8_t *pdst, uint_fast32_t dst_pitch, uint8_t *psrc, uint_fast32_t src_pitch)
 
void vsf_sdl2_pixel_fill (uint_fast16_t data_line_num, uint_fast32_t pixel_line_size, uint8_t *pbuf, uint_fast32_t dst_pitch, uint32_t color, uint_fast8_t color_byte_size)
 
uint32_t __SDL_GetColorFromMask (uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask)
 
const SDL_PixelFormat__SDL_GetFormatFromColor (uint32_t color)
 
void __SDL_InitFormatMask (SDL_PixelFormat *format, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask)
 
void __SDL_InitEvent (uint32_t flags)
 
void __SDL_FiniEvent (void)
 
void __SDL_LogMessage (SDL_LogPriority priority, int category, const char *fmt,...)
 
SDL_mutexSDL_CreateMutex (void)
 
void SDL_DestroyMutex (SDL_mutex *mutex)
 
int SDL_TryLockMutex (SDL_mutex *mutex)
 
int SDL_LockMutex (SDL_mutex *mutex)
 
int SDL_UnlockMutex (SDL_mutex *mutex)
 
void SDL_memset4 (void *dst, int val, size_t dwords)
 
const SDL_versionSDL_Linked_Version (void)
 
void SDL_GetVersion (SDL_version *ver)
 
SDL_bool SDL_IntersectRect (const SDL_Rect *rect0, const SDL_Rect *rect1, SDL_Rect *rect_out)
 
void vsf_sdl2_init (vsf_sdl2_cfg_t *cfg)
 
int SDL_InitSubSystem (uint32_t flags)
 
void SDL_QuitSubSystem (uint32_t flags)
 
int SDL_Init (uint32_t flags)
 
uint32_t SDL_WasInit (uint32_t flags)
 
void SDL_Quit (void)
 
const char * SDL_GetPlatform (void)
 
int SDL_GetDesktopDisplayMode (int display_index, SDL_DisplayMode *mode)
 
int SDL_GetCurrentDisplayMode (int display_index, SDL_DisplayMode *mode)
 
SDL_RWopsSDL_RWFromFile (const char *file, const char *mode)
 
int64_t SDL_RWsize (SDL_RWops *context)
 
int SDL_RWclose (SDL_RWops *context)
 
int64_t SDL_RWseek (SDL_RWops *context, int64_t offset, int whence)
 
int64_t SDL_RWtell (SDL_RWops *context)
 
size_t SDL_RWread (SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
 
size_t SDL_RWwrite (SDL_RWops *context, const void *ptr, size_t size, size_t num)
 
uint8_t SDL_ReadU8 (SDL_RWops *context)
 
uint16_t SDL_ReadLE16 (SDL_RWops *context)
 
uint16_t SDL_ReadBE16 (SDL_RWops *context)
 
uint32_t SDL_ReadLE32 (SDL_RWops *context)
 
uint32_t SDL_ReadBE32 (SDL_RWops *context)
 
uint64_t SDL_ReadLE64 (SDL_RWops *context)
 
uint64_t SDL_ReadBE64 (SDL_RWops *context)
 
uint8_t SDL_WriteU8 (SDL_RWops *context, uint8_t value)
 
uint16_t SDL_WriteLE16 (SDL_RWops *context, uint16_t value)
 
uint16_t SDL_WriteBE16 (SDL_RWops *context, uint16_t value)
 
uint32_t SDL_WriteLE32 (SDL_RWops *context, uint32_t value)
 
uint32_t SDL_WriteBE32 (SDL_RWops *context, uint32_t value)
 
uint64_t SDL_WriteLE64 (SDL_RWops *context, uint64_t value)
 
uint64_t SDL_WriteBE64 (SDL_RWops *context, uint64_t value)
 
SDL_WindowSDL_CreateWindow (const char *title, int x, int y, int w, int h, uint32_t flags)
 
void SDL_DestroyWindow (SDL_Window *window)
 
void SDL_GetWindowPosition (SDL_Window *window, int *x, int *y)
 
SDL_SurfaceSDL_GetWindowSurface (SDL_Window *window)
 
void SDL_GetWindowSize (SDL_Window *window, int *w, int *h)
 
int SDL_UpdateWindowSurface (SDL_Window *window)
 
int SDL_UpdateWindowSurfaceRects (SDL_Window *window, const SDL_Rect *rects, int numrects)
 
void SDL_ShowWindow (SDL_Window *window)
 
void SDL_SetWindowIcon (SDL_Window *window, SDL_Surface *icon)
 
void SDL_SetWindowTitle (SDL_Window *window, const char *title)
 
int SDL_SetWindowFullscreen (SDL_Window *window, uint32_t flags)
 
void SDL_RestoreWindow (SDL_Window *window)
 
void SDL_MaximizeWindow (SDL_Window *window)
 
void SDL_MinimizeWindow (SDL_Window *window)
 
void SDL_SetWindowBordered (SDL_Window *window, SDL_bool bordered)
 
void SDL_SetWindowPosition (SDL_Window *window, int x, int y)
 
int SDL_SetWindowOpacity (SDL_Window *window, float opacity)
 
uint32_t SDL_GetWindowFlags (SDL_Window *window)
 
SDL_Surface__SDL_CreateRGBSurfaceWithFormat (int w, int h, int depth, uint32_t format, uint_fast8_t pixel_size)
 
SDL_SurfaceSDL_CreateRGBSurfaceWithFormat (uint32_t flags, int w, int h, int depth, uint32_t format)
 
SDL_SurfaceSDL_CreateRGBSurfaceWithFormatFrom (void *pixels, int w, int h, int depth, int pitch, uint32_t format)
 
SDL_SurfaceSDL_CreateRGBSurface (uint32_t flags, int w, int h, int depth, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask)
 
SDL_SurfaceSDL_CreateRGBSurfaceFrom (void *pixels, int w, int h, int depth, int pitch, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask)
 
void SDL_FreeSurface (SDL_Surface *surface)
 
int SDL_LockSurface (SDL_Surface *surface)
 
void SDL_UnlockSurface (SDL_Surface *surface)
 
int SDL_SetSurfaceBlendMode (SDL_Surface *surface, SDL_BlendMode blendMode)
 
int SDL_SetColorKey (SDL_Surface *surface, int flag, uint32_t key)
 
int SDL_FillRect (SDL_Surface *surface, const SDL_Rect *rect, uint32_t color)
 
int SDL_BlitSurface (SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)
 
SDL_SurfaceSDL_ConvertSurfaceFormat (SDL_Surface *src, uint32_t format, uint32_t flags)
 
SDL_SurfaceSDL_ConvertSurface (SDL_Surface *src, const SDL_PixelFormat *format, uint32_t flags)
 
SDL_bool SDL_SetClipRect (SDL_Surface *surface, const SDL_Rect *rect)
 
void SDL_GetClipRect (SDL_Surface *surface, SDL_Rect *rect)
 
SDL_RendererSDL_CreateRenderer (SDL_Window *window, int index, uint32_t flags)
 
void SDL_DestroyRenderer (SDL_Renderer *renderer)
 
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)
 
void SDL_RenderPresent (SDL_Renderer *renderer)
 
int SDL_SetRenderDrawBlendMode (SDL_Renderer *renderer, SDL_BlendMode blendMode)
 
int SDL_GetRenderDrawBlendMode (SDL_Renderer *renderer, SDL_BlendMode *blendMode)
 
int SDL_RenderFillRect (SDL_Renderer *renderer, const SDL_Rect *rect)
 
int SDL_SetRenderDrawColor (SDL_Renderer *renderer, uint8_t r, uint8_t g, uint8_t b, uint8_t a)
 
int SDL_RenderDrawPoint (SDL_Renderer *renderer, int x, int y)
 
int SDL_RenderDrawRect (SDL_Renderer *renderer, const SDL_Rect *rect)
 
int SDL_SetRenderTarget (SDL_Renderer *renderer, SDL_Texture *texture)
 
SDL_TextureSDL_GetRenderTarget (SDL_Renderer *renderer)
 
void SDL_RenderGetViewport (SDL_Renderer *renderer, SDL_Rect *rect)
 
int SDL_RenderSetViewport (SDL_Renderer *renderer, const SDL_Rect *rect)
 
void SDL_RenderGetLogicalSize (SDL_Renderer *renderer, int *w, int *h)
 
int SDL_RenderSetLogicalSize (SDL_Renderer *renderer, int w, int h)
 
void SDL_RenderGetScale (SDL_Renderer *renderer, float *scaleX, float *scaleY)
 
int SDL_RenderSetScale (SDL_Renderer *renderer, float scaleX, float scaleY)
 
SDL_TextureSDL_CreateTexture (SDL_Renderer *renderer, uint32_t format, int access, int w, int h)
 
SDL_TextureSDL_CreateTextureFromSurface (SDL_Renderer *renderer, SDL_Surface *surface)
 
void SDL_DestroyTexture (SDL_Texture *texture)
 
int SDL_UpdateTexture (SDL_Texture *texture, const SDL_Rect *rect, const void *pixels, int pitch)
 
int SDL_LockTexture (SDL_Texture *texture, const SDL_Rect *rect, void **pixels, int *pitch)
 
void SDL_UnlockTexture (SDL_Texture *texture)
 
int SDL_SetTextureBlendMode (SDL_Texture *texture, SDL_BlendMode blendMode)
 
int SDL_GetTextureBlendMode (SDL_Texture *texture, SDL_BlendMode *blendMode)
 
int SDL_SetTextureColorMod (SDL_Texture *texture, uint8_t r, uint8_t g, uint8_t b)
 
int SDL_GetTextureColorMod (SDL_Texture *texture, uint8_t *r, uint8_t *g, uint8_t *b)
 
int SDL_SetTextureAlphaMod (SDL_Texture *texture, uint8_t alpha)
 
int SDL_GetTextureAlphaMod (SDL_Texture *texture, uint8_t *alpha)
 
uint32_t SDL_MapRGB (const SDL_PixelFormat *format, uint8_t r, uint8_t g, uint8_t b)
 
uint32_t SDL_MapRGBA (const SDL_PixelFormat *format, uint8_t r, uint8_t g, uint8_t b, uint8_t a)
 
SDL_PixelFormatSDL_AllocFormat (uint32_t format)
 
void SDL_FreeFormat (SDL_PixelFormat *format)
 
SDL_semSDL_CreateSemaphore (uint32_t initial_value)
 
void SDL_DestroySemaphore (SDL_sem *sem)
 
int __vsf_sdl2_sem_wait (SDL_sem *sem, int32_t ms)
 
int SDL_SemPost (SDL_sem *sem)
 
void SDL_Delay (uint32_t ms)
 
uint32_t SDL_GetTicks (void)
 
uint64_t SDL_GetPerformanceCounter (void)
 
uint64_t SDL_GetPerformanceFrequency (void)
 
SDL_TimerID SDL_AddTimer (uint32_t interval, SDL_TimerCallback callback, void *param)
 
SDL_bool SDL_RemoveTimer (SDL_TimerID id)
 
int SDL_GetDisplayDPI (int displayIndex, float *ddpi, float *hdpi, float *vdpi)
 
void SDL_EnableScreenSaver (void)
 
SDL_bool SDL_HasClipboardText (void)
 
int SDL_SetClipboardText (const char *text)
 
char * SDL_GetClipboardText (void)
 
int SDL_OpenAudio (SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
 
void SDL_PauseAudio (int pause_on)
 
SDL_AudioStatus SDL_GetAudioStatus (void)
 
void SDL_CloseAudio (void)
 
void SDL_LockAudio (void)
 
void SDL_UnlockAudio (void)
 
SDL_CursorSDL_CreateCursor (const uint8_t *data, const uint8_t *mask, int w, int h, int hot_x, int hot_y)
 
SDL_CursorSDL_CreateColorCursor (SDL_Surface *surface, int hot_x, int hot_y)
 
SDL_CursorSDL_CreateSystemCursor (SDL_SystemCursor id)
 
void SDL_SetCursor (SDL_Cursor *cursor)
 
SDL_CursorSDL_GetCursor (void)
 
SDL_CursorSDL_GetDefaultCursor (void)
 
void SDL_FreeCursor (SDL_Cursor *cursor)
 
int SDL_ShowCursor (int toggle)
 
int SDL_SetWindowHitTest (SDL_Window *window, SDL_HitTest callback, void *callback_data)
 
int SDL_Error (SDL_errorcode code)
 
const char * SDL_GetError (void)
 
int SDL_SetError (const char *fmt,...)
 
void SDL_ClearError (void)
 
SDL_OverlaySDL_CreateYUVOverlay (int width, int height, uint32_t format, SDL_Surface *display)
 
void SDL_FreeYUVOverlay (SDL_Overlay *overlay)
 
int SDL_LockYUVOverlay (SDL_Overlay *overlay)
 
void SDL_UnlockYUVOverlay (SDL_Overlay *overlay)
 
int SDL_DisplayYUVOverlay (SDL_Overlay *overlay, SDL_Rect *dstrect)
 
SDL_SurfaceSDL_SetVideoMode (int width, int height, int bpp, uint32_t flags)
 
int SDL_Flip (SDL_Surface *screen)
 
int SDL_EnableUNICODE (int enable)
 
int SDL_EnableKeyRepeat (int delay, int interval)
 
void SDL_WM_SetCaption (const char *title, const char *icon)
 

Variables

VSF_CAL_NO_INIT vsf_sdl2_t __vsf_sdl2
 

Macro Definition Documentation

◆ __VSF_DISP_CLASS_INHERIT__

#define __VSF_DISP_CLASS_INHERIT__

◆ __VSF_SIMPLE_STREAM_CLASS_INHERIT__

#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__

◆ __vsf_sdl2_fast_copy

#define __vsf_sdl2_fast_copy ( __pdst,
__psrc,
__num )
Value:
uint_fast32_t __temp = ((__num) + 3) / 4; \
if (!__num) { return; } \
switch (__num % 4) { \
case 0: do { *__pdst++ = *__psrc++; \
case 3: *__pdst++ = *__psrc++; \
case 2: *__pdst++ = *__psrc++; \
case 1: *__pdst++ = *__psrc++; \
} while (--__temp); \
}
unsigned int uint_fast32_t
Definition stdint.h:27

◆ __vsf_sdl2_fast_set

#define __vsf_sdl2_fast_set ( __pdst,
__value,
__num )
Value:
uint_fast32_t __temp = ((__num) + 3) / 4; \
if (!__num) { return; } \
switch (__num % 4) { \
case 0: do { *__pdst++ = __value; \
case 3: *__pdst++ = __value; \
case 2: *__pdst++ = __value; \
case 1: *__pdst++ = __value; \
} while (--__temp); \
}

Typedef Documentation

◆ vsf_sdl2_t

typedef struct vsf_sdl2_t vsf_sdl2_t

◆ SDL_Timer

typedef struct SDL_Timer SDL_Timer

Function Documentation

◆ vsf_sdl2_pixel_copy()

void vsf_sdl2_pixel_copy ( uint_fast16_t data_line_num,
uint_fast32_t data_line_size,
uint8_t * pdst,
uint_fast32_t dst_pitch,
uint8_t * psrc,
uint_fast32_t src_pitch )
extern

◆ vsf_sdl2_pixel_fill()

void vsf_sdl2_pixel_fill ( uint_fast16_t data_line_num,
uint_fast32_t pixel_line_size,
uint8_t * pbuf,
uint_fast32_t dst_pitch,
uint32_t color,
uint_fast8_t color_byte_size )
extern

◆ __SDL_GetColorFromMask()

uint32_t __SDL_GetColorFromMask ( uint32_t Rmask,
uint32_t Gmask,
uint32_t Bmask,
uint32_t Amask )
extern

◆ __SDL_GetFormatFromColor()

const SDL_PixelFormat * __SDL_GetFormatFromColor ( uint32_t color)
extern

◆ __SDL_InitFormatMask()

void __SDL_InitFormatMask ( SDL_PixelFormat * format,
uint32_t Rmask,
uint32_t Gmask,
uint32_t Bmask,
uint32_t Amask )
extern

◆ __SDL_InitEvent()

void __SDL_InitEvent ( uint32_t flags)
extern

◆ __SDL_FiniEvent()

void __SDL_FiniEvent ( void )
extern

◆ __SDL_LogMessage()

void __SDL_LogMessage ( SDL_LogPriority priority,
int category,
const char * fmt,
... )

◆ SDL_CreateMutex()

SDL_mutex * SDL_CreateMutex ( void )

◆ SDL_DestroyMutex()

void SDL_DestroyMutex ( SDL_mutex * mutex)

◆ SDL_TryLockMutex()

int SDL_TryLockMutex ( SDL_mutex * mutex)

◆ SDL_LockMutex()

int SDL_LockMutex ( SDL_mutex * mutex)

◆ SDL_UnlockMutex()

int SDL_UnlockMutex ( SDL_mutex * mutex)

◆ SDL_memset4()

void SDL_memset4 ( void * dst,
int val,
size_t dwords )

◆ SDL_Linked_Version()

const SDL_version * SDL_Linked_Version ( void )

◆ SDL_GetVersion()

void SDL_GetVersion ( SDL_version * ver)

◆ SDL_IntersectRect()

SDL_bool SDL_IntersectRect ( const SDL_Rect * rect0,
const SDL_Rect * rect1,
SDL_Rect * rect_out )

◆ vsf_sdl2_init()

void vsf_sdl2_init ( vsf_sdl2_cfg_t * cfg)

◆ SDL_InitSubSystem()

int SDL_InitSubSystem ( uint32_t flags)

◆ SDL_QuitSubSystem()

void SDL_QuitSubSystem ( uint32_t flags)

◆ SDL_Init()

int SDL_Init ( uint32_t flags)

◆ SDL_WasInit()

uint32_t SDL_WasInit ( uint32_t flags)

◆ SDL_Quit()

void SDL_Quit ( void )

◆ SDL_GetPlatform()

const char * SDL_GetPlatform ( void )

◆ SDL_GetDesktopDisplayMode()

int SDL_GetDesktopDisplayMode ( int display_index,
SDL_DisplayMode * mode )

◆ SDL_GetCurrentDisplayMode()

int SDL_GetCurrentDisplayMode ( int display_index,
SDL_DisplayMode * mode )

◆ SDL_RWFromFile()

SDL_RWops * SDL_RWFromFile ( const char * file,
const char * mode )

◆ SDL_RWsize()

int64_t SDL_RWsize ( SDL_RWops * context)

◆ SDL_RWclose()

int SDL_RWclose ( SDL_RWops * context)

◆ SDL_RWseek()

int64_t SDL_RWseek ( SDL_RWops * context,
int64_t offset,
int whence )

◆ SDL_RWtell()

int64_t SDL_RWtell ( SDL_RWops * context)

◆ SDL_RWread()

size_t SDL_RWread ( SDL_RWops * context,
void * ptr,
size_t size,
size_t maxnum )

◆ SDL_RWwrite()

size_t SDL_RWwrite ( SDL_RWops * context,
const void * ptr,
size_t size,
size_t num )

◆ SDL_ReadU8()

uint8_t SDL_ReadU8 ( SDL_RWops * context)

◆ SDL_ReadLE16()

uint16_t SDL_ReadLE16 ( SDL_RWops * context)

◆ SDL_ReadBE16()

uint16_t SDL_ReadBE16 ( SDL_RWops * context)

◆ SDL_ReadLE32()

uint32_t SDL_ReadLE32 ( SDL_RWops * context)

◆ SDL_ReadBE32()

uint32_t SDL_ReadBE32 ( SDL_RWops * context)

◆ SDL_ReadLE64()

uint64_t SDL_ReadLE64 ( SDL_RWops * context)

◆ SDL_ReadBE64()

uint64_t SDL_ReadBE64 ( SDL_RWops * context)

◆ SDL_WriteU8()

uint8_t SDL_WriteU8 ( SDL_RWops * context,
uint8_t value )

◆ SDL_WriteLE16()

uint16_t SDL_WriteLE16 ( SDL_RWops * context,
uint16_t value )

◆ SDL_WriteBE16()

uint16_t SDL_WriteBE16 ( SDL_RWops * context,
uint16_t value )

◆ SDL_WriteLE32()

uint32_t SDL_WriteLE32 ( SDL_RWops * context,
uint32_t value )

◆ SDL_WriteBE32()

uint32_t SDL_WriteBE32 ( SDL_RWops * context,
uint32_t value )

◆ SDL_WriteLE64()

uint64_t SDL_WriteLE64 ( SDL_RWops * context,
uint64_t value )

◆ SDL_WriteBE64()

uint64_t SDL_WriteBE64 ( SDL_RWops * context,
uint64_t value )

◆ SDL_CreateWindow()

SDL_Window * SDL_CreateWindow ( const char * title,
int x,
int y,
int w,
int h,
uint32_t flags )

◆ SDL_DestroyWindow()

void SDL_DestroyWindow ( SDL_Window * window)

◆ SDL_GetWindowPosition()

void SDL_GetWindowPosition ( SDL_Window * window,
int * x,
int * y )

◆ SDL_GetWindowSurface()

SDL_Surface * SDL_GetWindowSurface ( SDL_Window * window)

◆ SDL_GetWindowSize()

void SDL_GetWindowSize ( SDL_Window * window,
int * w,
int * h )

◆ SDL_UpdateWindowSurface()

int SDL_UpdateWindowSurface ( SDL_Window * window)

◆ SDL_UpdateWindowSurfaceRects()

int SDL_UpdateWindowSurfaceRects ( SDL_Window * window,
const SDL_Rect * rects,
int numrects )

◆ SDL_ShowWindow()

void SDL_ShowWindow ( SDL_Window * window)

◆ SDL_SetWindowIcon()

void SDL_SetWindowIcon ( SDL_Window * window,
SDL_Surface * icon )

◆ SDL_SetWindowTitle()

void SDL_SetWindowTitle ( SDL_Window * window,
const char * title )

◆ SDL_SetWindowFullscreen()

int SDL_SetWindowFullscreen ( SDL_Window * window,
uint32_t flags )

◆ SDL_RestoreWindow()

void SDL_RestoreWindow ( SDL_Window * window)

◆ SDL_MaximizeWindow()

void SDL_MaximizeWindow ( SDL_Window * window)

◆ SDL_MinimizeWindow()

void SDL_MinimizeWindow ( SDL_Window * window)

◆ SDL_SetWindowBordered()

void SDL_SetWindowBordered ( SDL_Window * window,
SDL_bool bordered )

◆ SDL_SetWindowPosition()

void SDL_SetWindowPosition ( SDL_Window * window,
int x,
int y )

◆ SDL_SetWindowOpacity()

int SDL_SetWindowOpacity ( SDL_Window * window,
float opacity )

◆ SDL_GetWindowFlags()

uint32_t SDL_GetWindowFlags ( SDL_Window * window)

◆ __SDL_CreateRGBSurfaceWithFormat()

SDL_Surface * __SDL_CreateRGBSurfaceWithFormat ( int w,
int h,
int depth,
uint32_t format,
uint_fast8_t pixel_size )

◆ SDL_CreateRGBSurfaceWithFormat()

SDL_Surface * SDL_CreateRGBSurfaceWithFormat ( uint32_t flags,
int w,
int h,
int depth,
uint32_t format )

◆ SDL_CreateRGBSurfaceWithFormatFrom()

SDL_Surface * SDL_CreateRGBSurfaceWithFormatFrom ( void * pixels,
int w,
int h,
int depth,
int pitch,
uint32_t format )

◆ SDL_CreateRGBSurface()

SDL_Surface * SDL_CreateRGBSurface ( uint32_t flags,
int w,
int h,
int depth,
uint32_t Rmask,
uint32_t Gmask,
uint32_t Bmask,
uint32_t Amask )

◆ SDL_CreateRGBSurfaceFrom()

SDL_Surface * SDL_CreateRGBSurfaceFrom ( void * pixels,
int w,
int h,
int depth,
int pitch,
uint32_t Rmask,
uint32_t Gmask,
uint32_t Bmask,
uint32_t Amask )

◆ SDL_FreeSurface()

void SDL_FreeSurface ( SDL_Surface * surface)

◆ SDL_LockSurface()

int SDL_LockSurface ( SDL_Surface * surface)

◆ SDL_UnlockSurface()

void SDL_UnlockSurface ( SDL_Surface * surface)

◆ SDL_SetSurfaceBlendMode()

int SDL_SetSurfaceBlendMode ( SDL_Surface * surface,
SDL_BlendMode blendMode )

◆ SDL_SetColorKey()

int SDL_SetColorKey ( SDL_Surface * surface,
int flag,
uint32_t key )

◆ SDL_FillRect()

int SDL_FillRect ( SDL_Surface * surface,
const SDL_Rect * rect,
uint32_t color )

◆ SDL_BlitSurface()

int SDL_BlitSurface ( SDL_Surface * src,
const SDL_Rect * srcrect,
SDL_Surface * dst,
SDL_Rect * dstrect )

◆ SDL_ConvertSurfaceFormat()

SDL_Surface * SDL_ConvertSurfaceFormat ( SDL_Surface * src,
uint32_t format,
uint32_t flags )

◆ SDL_ConvertSurface()

SDL_Surface * SDL_ConvertSurface ( SDL_Surface * src,
const SDL_PixelFormat * format,
uint32_t flags )

◆ SDL_SetClipRect()

SDL_bool SDL_SetClipRect ( SDL_Surface * surface,
const SDL_Rect * rect )

◆ SDL_GetClipRect()

void SDL_GetClipRect ( SDL_Surface * surface,
SDL_Rect * rect )

◆ SDL_CreateRenderer()

SDL_Renderer * SDL_CreateRenderer ( SDL_Window * window,
int index,
uint32_t flags )

◆ SDL_DestroyRenderer()

void SDL_DestroyRenderer ( SDL_Renderer * renderer)

◆ SDL_RenderClear()

int SDL_RenderClear ( SDL_Renderer * renderer)

◆ SDL_RenderCopy()

int SDL_RenderCopy ( SDL_Renderer * renderer,
SDL_Texture * texture,
const SDL_Rect * srcrect,
const SDL_Rect * dstrect )

◆ SDL_RenderCopyEx()

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 )

◆ SDL_RenderPresent()

void SDL_RenderPresent ( SDL_Renderer * renderer)

◆ SDL_SetRenderDrawBlendMode()

int SDL_SetRenderDrawBlendMode ( SDL_Renderer * renderer,
SDL_BlendMode blendMode )

◆ SDL_GetRenderDrawBlendMode()

int SDL_GetRenderDrawBlendMode ( SDL_Renderer * renderer,
SDL_BlendMode * blendMode )

◆ SDL_RenderFillRect()

int SDL_RenderFillRect ( SDL_Renderer * renderer,
const SDL_Rect * rect )

◆ SDL_SetRenderDrawColor()

int SDL_SetRenderDrawColor ( SDL_Renderer * renderer,
uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a )

◆ SDL_RenderDrawPoint()

int SDL_RenderDrawPoint ( SDL_Renderer * renderer,
int x,
int y )

◆ SDL_RenderDrawRect()

int SDL_RenderDrawRect ( SDL_Renderer * renderer,
const SDL_Rect * rect )

◆ SDL_SetRenderTarget()

int SDL_SetRenderTarget ( SDL_Renderer * renderer,
SDL_Texture * texture )

◆ SDL_GetRenderTarget()

SDL_Texture * SDL_GetRenderTarget ( SDL_Renderer * renderer)

◆ SDL_RenderGetViewport()

void SDL_RenderGetViewport ( SDL_Renderer * renderer,
SDL_Rect * rect )

◆ SDL_RenderSetViewport()

int SDL_RenderSetViewport ( SDL_Renderer * renderer,
const SDL_Rect * rect )

◆ SDL_RenderGetLogicalSize()

void SDL_RenderGetLogicalSize ( SDL_Renderer * renderer,
int * w,
int * h )

◆ SDL_RenderSetLogicalSize()

int SDL_RenderSetLogicalSize ( SDL_Renderer * renderer,
int w,
int h )

◆ SDL_RenderGetScale()

void SDL_RenderGetScale ( SDL_Renderer * renderer,
float * scaleX,
float * scaleY )

◆ SDL_RenderSetScale()

int SDL_RenderSetScale ( SDL_Renderer * renderer,
float scaleX,
float scaleY )

◆ SDL_CreateTexture()

SDL_Texture * SDL_CreateTexture ( SDL_Renderer * renderer,
uint32_t format,
int access,
int w,
int h )

◆ SDL_CreateTextureFromSurface()

SDL_Texture * SDL_CreateTextureFromSurface ( SDL_Renderer * renderer,
SDL_Surface * surface )

◆ SDL_DestroyTexture()

void SDL_DestroyTexture ( SDL_Texture * texture)

◆ SDL_UpdateTexture()

int SDL_UpdateTexture ( SDL_Texture * texture,
const SDL_Rect * rect,
const void * pixels,
int pitch )

◆ SDL_LockTexture()

int SDL_LockTexture ( SDL_Texture * texture,
const SDL_Rect * rect,
void ** pixels,
int * pitch )

◆ SDL_UnlockTexture()

void SDL_UnlockTexture ( SDL_Texture * texture)

◆ SDL_SetTextureBlendMode()

int SDL_SetTextureBlendMode ( SDL_Texture * texture,
SDL_BlendMode blendMode )

◆ SDL_GetTextureBlendMode()

int SDL_GetTextureBlendMode ( SDL_Texture * texture,
SDL_BlendMode * blendMode )

◆ SDL_SetTextureColorMod()

int SDL_SetTextureColorMod ( SDL_Texture * texture,
uint8_t r,
uint8_t g,
uint8_t b )

◆ SDL_GetTextureColorMod()

int SDL_GetTextureColorMod ( SDL_Texture * texture,
uint8_t * r,
uint8_t * g,
uint8_t * b )

◆ SDL_SetTextureAlphaMod()

int SDL_SetTextureAlphaMod ( SDL_Texture * texture,
uint8_t alpha )

◆ SDL_GetTextureAlphaMod()

int SDL_GetTextureAlphaMod ( SDL_Texture * texture,
uint8_t * alpha )

◆ SDL_MapRGB()

uint32_t SDL_MapRGB ( const SDL_PixelFormat * format,
uint8_t r,
uint8_t g,
uint8_t b )

◆ SDL_MapRGBA()

uint32_t SDL_MapRGBA ( const SDL_PixelFormat * format,
uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a )

◆ SDL_AllocFormat()

SDL_PixelFormat * SDL_AllocFormat ( uint32_t format)

◆ SDL_FreeFormat()

void SDL_FreeFormat ( SDL_PixelFormat * format)

◆ SDL_CreateSemaphore()

SDL_sem * SDL_CreateSemaphore ( uint32_t initial_value)

◆ SDL_DestroySemaphore()

void SDL_DestroySemaphore ( SDL_sem * sem)

◆ __vsf_sdl2_sem_wait()

int __vsf_sdl2_sem_wait ( SDL_sem * sem,
int32_t ms )

◆ SDL_SemPost()

int SDL_SemPost ( SDL_sem * sem)

◆ SDL_Delay()

void SDL_Delay ( uint32_t ms)

◆ SDL_GetTicks()

uint32_t SDL_GetTicks ( void )

◆ SDL_GetPerformanceCounter()

uint64_t SDL_GetPerformanceCounter ( void )

◆ SDL_GetPerformanceFrequency()

uint64_t SDL_GetPerformanceFrequency ( void )

◆ SDL_AddTimer()

SDL_TimerID SDL_AddTimer ( uint32_t interval,
SDL_TimerCallback callback,
void * param )

◆ SDL_RemoveTimer()

SDL_bool SDL_RemoveTimer ( SDL_TimerID id)

◆ SDL_GetDisplayDPI()

int SDL_GetDisplayDPI ( int displayIndex,
float * ddpi,
float * hdpi,
float * vdpi )

◆ SDL_EnableScreenSaver()

void SDL_EnableScreenSaver ( void )

◆ SDL_HasClipboardText()

SDL_bool SDL_HasClipboardText ( void )

◆ SDL_SetClipboardText()

int SDL_SetClipboardText ( const char * text)

◆ SDL_GetClipboardText()

char * SDL_GetClipboardText ( void )

◆ SDL_OpenAudio()

int SDL_OpenAudio ( SDL_AudioSpec * desired,
SDL_AudioSpec * obtained )

◆ SDL_PauseAudio()

void SDL_PauseAudio ( int pause_on)

◆ SDL_GetAudioStatus()

SDL_AudioStatus SDL_GetAudioStatus ( void )

◆ SDL_CloseAudio()

void SDL_CloseAudio ( void )

◆ SDL_LockAudio()

void SDL_LockAudio ( void )

◆ SDL_UnlockAudio()

void SDL_UnlockAudio ( void )

◆ SDL_CreateCursor()

SDL_Cursor * SDL_CreateCursor ( const uint8_t * data,
const uint8_t * mask,
int w,
int h,
int hot_x,
int hot_y )

◆ SDL_CreateColorCursor()

SDL_Cursor * SDL_CreateColorCursor ( SDL_Surface * surface,
int hot_x,
int hot_y )

◆ SDL_CreateSystemCursor()

SDL_Cursor * SDL_CreateSystemCursor ( SDL_SystemCursor id)

◆ SDL_SetCursor()

void SDL_SetCursor ( SDL_Cursor * cursor)

◆ SDL_GetCursor()

SDL_Cursor * SDL_GetCursor ( void )

◆ SDL_GetDefaultCursor()

SDL_Cursor * SDL_GetDefaultCursor ( void )

◆ SDL_FreeCursor()

void SDL_FreeCursor ( SDL_Cursor * cursor)

◆ SDL_ShowCursor()

int SDL_ShowCursor ( int toggle)

◆ SDL_SetWindowHitTest()

int SDL_SetWindowHitTest ( SDL_Window * window,
SDL_HitTest callback,
void * callback_data )

◆ SDL_Error()

int SDL_Error ( SDL_errorcode code)

◆ SDL_GetError()

const char * SDL_GetError ( void )

◆ SDL_SetError()

int SDL_SetError ( const char * fmt,
... )

◆ SDL_ClearError()

void SDL_ClearError ( void )

◆ SDL_CreateYUVOverlay()

SDL_Overlay * SDL_CreateYUVOverlay ( int width,
int height,
uint32_t format,
SDL_Surface * display )

◆ SDL_FreeYUVOverlay()

void SDL_FreeYUVOverlay ( SDL_Overlay * overlay)

◆ SDL_LockYUVOverlay()

int SDL_LockYUVOverlay ( SDL_Overlay * overlay)

◆ SDL_UnlockYUVOverlay()

void SDL_UnlockYUVOverlay ( SDL_Overlay * overlay)

◆ SDL_DisplayYUVOverlay()

int SDL_DisplayYUVOverlay ( SDL_Overlay * overlay,
SDL_Rect * dstrect )

◆ SDL_SetVideoMode()

SDL_Surface * SDL_SetVideoMode ( int width,
int height,
int bpp,
uint32_t flags )

◆ SDL_Flip()

int SDL_Flip ( SDL_Surface * screen)

◆ SDL_EnableUNICODE()

int SDL_EnableUNICODE ( int enable)

◆ SDL_EnableKeyRepeat()

int SDL_EnableKeyRepeat ( int delay,
int interval )

◆ SDL_WM_SetCaption()

void SDL_WM_SetCaption ( const char * title,
const char * icon )

Variable Documentation

◆ __vsf_sdl2

VSF_CAL_NO_INIT vsf_sdl2_t __vsf_sdl2
Generated from commit: vsfteam/vsf@ceb53fd