Go to the documentation of this file.
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,
110 #ifdef __EMSCRIPTEN__
112 emscripten_cancel_main_loop();
149 #ifdef __EMSCRIPTEN__
150 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_GetWindowDisplayIndex
#define SDL_RenderPresent
#define SDL_GetDisplayName
static const char * cursorNames[]
#define SDL_CreateSystemCursor
SDL_Renderer ** renderers
static SDLTest_CommonState * state
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
The type used to identify a window.
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.
EGLSurface EGLNativeWindowType * window
#define SDL_GetWindowFromID
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
#define SDL_assert(condition)
#define SDL_arraysize(array)
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
int main(int argc, char *argv[])
static SDL_Renderer * renderer
#define SDL_LogSetPriority
#define SDL_SetRenderDrawColor
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
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)