|
enum | {
SDL_WINDOWPOS_CENTERED
,
SDL_WINDOWPOS_UNDEFINED
} |
|
enum | SDL_WindowFlags {
SDL_WINDOW_FULLSCREEN = (1 <<0)
,
SDL_WINDOW_OPENGL = (1 << 1)
,
SDL_WINDOW_SHOWN = (1 << 2)
,
SDL_WINDOW_HIDDEN = (1 << 3)
,
SDL_WINDOW_BORDERLESS = (1 << 4)
,
SDL_WINDOW_RESIZABLE = (1 << 5)
,
SDL_WINDOW_MINIMIZED = (1 << 6)
,
SDL_WINDOW_MAXIMIZED = (1 << 7)
,
SDL_WINDOW_INPUT_GRABBED = (1 << 8)
,
SDL_WINDOW_INPUT_FOCUS = (1 << 9)
,
SDL_WINDOW_MOUSE_FOCUS = (1 << 10)
,
SDL_WINDOW_DESKTOP = (1 << 12)
,
SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | SDL_WINDOW_DESKTOP )
,
SDL_WINDOW_ALLOW_HIGHDPI = (1 << 13)
,
SDL_WINDOW_MOUSE_CAPTURE = (1 << 14)
,
SDL_WINDOW_ALWAYS_ON_TOP = (1 << 15)
,
SDL_WINDOW_SKIP_TASKBAR = (1 << 16)
,
SDL_WINDOW_UTILITY = (1 << 17)
,
SDL_WINDOW_TOOLTIP = (1 << 18)
,
SDL_WINDOW_POPUP_MENU = (1 << 19)
,
SDL_WINDOW_VULKAN = (1 << 20)
} |
|
enum | SDL_TextureAccess {
SDL_TEXTUREACCESS_STATIC
,
SDL_TEXTUREACCESS_STREAMING
,
SDL_TEXTUREACCESS_TARGET
} |
|
enum | SDL_PixelFormatEnum {
SDL_PIXELFORMAT_UNKNOWN = VSF_DISP_COLOR_INVALID
,
SDL_PIXELFORMAT_BYMASK_IDX = 0xFF
,
SDL_PIXELFORMAT_PALETTE = VSF_DISP_COLOR_VALUE(0, 8, 1, 0)
,
SDL_PIXELFORMAT_RGBA8888 = VSF_DISP_COLOR_RGBA8888
,
SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_RGBA8888
,
SDL_PIXELFORMAT_ABGR8888 = VSF_DISP_COLOR_ABGR8888
,
SDL_PIXELFORMAT_ARGB8888 = VSF_DISP_COLOR_ARGB8888
,
SDL_PIXELFORMAT_RGB565 = VSF_DISP_COLOR_RGB565
,
SDL_PIXELFORMAT_RGB332 = VSF_DISP_COLOR_RGB332
,
SDL_PIXELFORMAT_RGB666 = VSF_DISP_COLOR_RGB666_32
,
SDL_PIXELFORMAT_RGB888 = VSF_DISP_COLOR_RGB888_32
,
SDL_PIXELFORMAT_BGR888 = VSF_DISP_COLOR_BGR888_32
,
SDL_PIXELFORMAT_RGB24 = VSF_DISP_COLOR_RGB888_24
,
SDL_PIXELFORMAT_BGR24 = VSF_DISP_COLOR_BGR888_24
,
VSF_DISP_COLOR_IDX_DEF =(INDEX8) = 100
,
VSF_DISP_COLOR_DEF =(INDEX8, 8, 1, 0)
,
SDL_PIXELFORMAT_INDEX8 = VSF_DISP_COLOR_INDEX8
} |
|
enum | SDL_BlendMode {
SDL_BLENDMODE_NONE
,
SDL_BLENDMODE_BLEND
,
SDL_BLENDMODE_ADD
,
SDL_BLENDMODE_MOD
} |
|
enum | {
SDL_YV12_OVERLAY = 0x32315659
,
SDL_IYUV_OVERLAY = 0x56555949
,
SDL_YUY2_OVERLAY = 0x32595559
,
SDL_UYVY_OVERLAY = 0x59565955
,
SDL_YVYU_OVERLAY = 0x55595659
} |
|
enum | {
SDL_SWSURFACE = 0 << 0
,
SDL_ANYFORMAT = 1 << 0
,
SDL_HWSURFACE = 1 << 1
,
SDL_DOUBLEBUF = 1 << 2
,
SDL_FULLSCREEN = 1 << 3
} |
|
enum | SDL_RendererFlags {
SDL_RENDERER_SOFTWARE = (1 << 0)
,
SDL_RENDERER_ACCELERATED = (1 << 1)
,
SDL_RENDERER_PRESENTVSYNC = (1 << 2)
,
SDL_RENDERER_TARGETTEXTURE = (1 << 3)
} |
|
enum | SDL_RendererFlip {
SDL_FLIP_NONE = 0
,
SDL_FLIP_HORIZONTAL = (1 << 0)
,
SDL_FLIP_VERTICAL = (1 << 1)
} |
|
enum | SDL_HitTestResult {
SDL_HITTEST_NORMAL
,
SDL_HITTEST_DRAGGABLE
,
SDL_HITTEST_RESIZE_TOPLEFT
,
SDL_HITTEST_RESIZE_TOP
,
SDL_HITTEST_RESIZE_TOPRIGHT
,
SDL_HITTEST_RESIZE_RIGHT
,
SDL_HITTEST_RESIZE_BOTTOMRIGHT
,
SDL_HITTEST_RESIZE_BOTTOM
,
SDL_HITTEST_RESIZE_BOTTOMLEFT
,
SDL_HITTEST_RESIZE_LEFT
} |
|
|
void | vsf_sdl2_init (vsf_sdl2_cfg_t *cfg) |
|
int | SDL_Init (uint32_t flags) |
|
int | SDL_InitSubSystem (uint32_t flags) |
|
void | SDL_QuitSubSystem (uint32_t flags) |
|
void | SDL_memset4 (void *dst, int val, size_t dwords) |
|
int | SDL_SetError (const char *fmt,...) |
|
SDL_bool | SDL_IntersectRect (const SDL_Rect *rect0, const SDL_Rect *rect1, SDL_Rect *rect_out) |
|
SDL_Window * | SDL_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_Surface * | SDL_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) |
|
uint32_t | SDL_GetWindowFlags (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) |
|
int | SDL_GetDesktopDisplayMode (int display_index, SDL_DisplayMode *mode) |
|
int | SDL_GetCurrentDisplayMode (int display_index, SDL_DisplayMode *mode) |
|
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_Surface * | SDL_CreateRGBSurfaceWithFormat (uint32_t flags, int w, int h, int depth, uint32_t format) |
|
SDL_Surface * | SDL_CreateRGBSurfaceWithFormatFrom (void *pixels, int w, int h, int depth, int pitch, uint32_t format) |
|
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) |
|
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_Surface * | SDL_ConvertSurfaceFormat (SDL_Surface *src, uint32_t format, uint32_t flags) |
|
SDL_Surface * | SDL_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_Renderer * | SDL_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_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) |
|
void | SDL_RenderGetScale (SDL_Renderer *renderer, float *scaleX, float *scaleY) |
|
int | SDL_RenderSetScale (SDL_Renderer *renderer, float scaleX, float scaleY) |
|
void | SDL_RenderGetLogicalSize (SDL_Renderer *renderer, int *w, int *h) |
|
int | SDL_RenderSetLogicalSize (SDL_Renderer *renderer, int w, int h) |
|
void | SDL_RenderGetViewport (SDL_Renderer *renderer, SDL_Rect *rect) |
|
int | SDL_RenderSetViewport (SDL_Renderer *renderer, const SDL_Rect *rect) |
|
int | SDL_SetRenderTarget (SDL_Renderer *renderer, SDL_Texture *texture) |
|
SDL_Texture * | SDL_GetRenderTarget (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) |
|
SDL_Texture * | SDL_CreateTexture (SDL_Renderer *renderer, uint32_t format, int access, int w, int h) |
|
SDL_Texture * | SDL_CreateTextureFromSurface (SDL_Renderer *renderer, SDL_Surface *surface) |
|
void | SDL_DestroyTexture (SDL_Texture *texture) |
|
int | SDL_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_MapRGBA (const SDL_PixelFormat *format, uint8_t r, uint8_t g, uint8_t b, uint8_t a) |
|
uint32_t | SDL_MapRGB (const SDL_PixelFormat *format, uint8_t r, uint8_t g, uint8_t b) |
|
SDL_PixelFormat * | SDL_AllocFormat (uint32_t format) |
|
void | SDL_FreeFormat (SDL_PixelFormat *format) |
|
SDL_sem * | SDL_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) |
|
int | SDL_GetDisplayDPI (int display_index, float *ddpi, float *hdpi, float *vdpi) |
|
int | SDL_SetClipboardText (const char *text) |
|
const char * | SDL_GetScancodeName (SDL_Scancode scancode) |
|
const char * | SDL_GetKeyName (SDL_Keycode key) |
|
SDL_Cursor * | SDL_CreateCursor (const uint8_t *data, const uint8_t *mask, int w, int h, int hot_x, int hot_y) |
|
SDL_Cursor * | SDL_CreateColorCursor (SDL_Surface *surface, int hot_x, int hot_y) |
|
SDL_Cursor * | SDL_CreateSystemCursor (SDL_SystemCursor id) |
|
void | SDL_SetCursor (SDL_Cursor *cursor) |
|
void | SDL_FreeCursor (SDL_Cursor *cursor) |
|
int | SDL_ShowCursor (int toggle) |
|
SDL_Joystick * | SDL_JoystickOpen (int device_index) |
|
void | SDL_JoystickClose (SDL_Joystick *joystick) |
|
int | SDL_JoystickEventState (int state) |
|
int | SDL_JoystickNumButtons (SDL_Joystick *joystick) |
|
int | SDL_JoystickNumAxes (SDL_Joystick *joystick) |
|
int | SDL_JoystickNumBalls (SDL_Joystick *joystick) |
|
int | SDL_JoystickNumHats (SDL_Joystick *joystick) |
|
int | SDL_CaptureMouse (SDL_bool enabled) |
|
uint32_t | SDL_GetGlobalMouseState (int *x, int *y) |
|
int | SDL_SetWindowHitTest (SDL_Window *window, SDL_HitTest callback, void *callback_data) |
|
SDL_Overlay * | SDL_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_Surface * | SDL_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) |
|