17#include <emscripten/emscripten.h>
63 SDL_Log(
"Window %d resized to %dx%d\n",
64 event.window.windowID,
72 SDL_Log(
"Window %d moved to %d,%d (display %s)\n",
73 event.window.windowID,
112 emscripten_cancel_main_loop();
150 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_assert(condition)
#define SDL_RenderPresent
#define SDL_SetRenderDrawColor
#define SDL_CreateSystemCursor
#define SDL_GetDisplayName
#define SDL_LogSetPriority
#define SDL_GetWindowDisplayIndex
#define SDL_GetWindowFromID
@ SDL_LOG_CATEGORY_APPLICATION
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
#define SDL_arraysize(array)
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv)
Easy argument handling when test app doesn't need any custom args.
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
@ SDL_WINDOWEVENT_RESIZED
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
SDL_Renderer ** renderers
static SDL_Renderer * renderer
int main(int argc, char *argv[])
static const char * cursorNames[]
static SDLTest_CommonState * state