Go to the documentation of this file.
17 #include <emscripten/emscripten.h>
79 switch (
surface->format->BitsPerPixel) {
110 for (col=0; col<32; ++col) {
176 #ifdef __EMSCRIPTEN__
178 emscripten_cancel_main_loop();
187 const char *color_cursor =
NULL;
197 for (
i = 1;
i < argc;) {
202 color_cursor = argv[
i];
228 SDL_Log(
"Error, couldn't create cursor\n");
234 SDL_Log(
"Error, couldn't create system cursor %d\n",
i);
242 #ifdef __EMSCRIPTEN__
243 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_RenderPresent
int main(int argc, char *argv[])
A collection of pixels used in software blitting.
static SDLTest_CommonState * state
static SDL_Cursor * cursors[1+SDL_NUM_SYSTEM_CURSORS]
#define SDL_CreateSystemCursor
SDL_Renderer ** renderers
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
static SDL_Cursor * init_color_cursor(const char *file)
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
static int current_cursor
static SDL_Cursor * init_system_cursor(const char *image[])
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
SDL_SystemCursor
Cursor types for SDL_CreateSystemCursor().
void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const char **options)
Logs command line usage info.
static const char * arrow[]
#define SDL_LoadBMP(file)
int uint32_t uint32_t uint32_t uint32_t uint32_t int drmModeModeInfoPtr mode int uint32_t uint32_t uint32_t uint32_t int32_t hot_x
#define SDL_CreateColorCursor
#define SDL_arraysize(array)
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
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)