17 #include <emscripten/emscripten.h> 63 SDL_Log(
"Window %d resized to %dx%d\n",
72 SDL_Log(
"Window %d moved to %d,%d (display %s)\n",
110 #ifdef __EMSCRIPTEN__ 112 emscripten_cancel_main_loop();
132 for (i = 1; i < argc;) {
157 #ifdef __EMSCRIPTEN__ 158 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_GetWindowDisplayIndex
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
#define SDL_CreateSystemCursor
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
#define SDL_GetDisplayName
static const char * cursorNames[]
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
static SDLTest_CommonState * state
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
static SDL_Renderer * renderer
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
#define SDL_GetWindowFromID
const char * SDLTest_CommonUsage(SDLTest_CommonState *state)
Returns common usage information.
SDL_Renderer ** renderers
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)
#define SDL_assert(condition)
int main(int argc, char *argv[])
#define SDL_LogSetPriority
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
#define SDL_arraysize(array)
#define SDL_SetRenderDrawColor
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
#define SDL_RenderPresent