SDL 2.0
|
Go to the source code of this file.
Functions | |
static SDL_Cursor * | init_color_cursor (const char *file) |
static SDL_Cursor * | init_system_cursor (const char *image[]) |
static void | quit (int rc) |
void | loop () |
int | main (int argc, char *argv[]) |
Variables | |
static const char * | arrow [] |
static SDLTest_CommonState * | state |
int | done |
static SDL_Cursor * | cursors [1+SDL_NUM_SYSTEM_CURSORS] |
static int | current_cursor |
static int | show_cursor |
|
static |
Definition at line 71 of file testcustomcursor.c.
References cursor, NULL, SDL_CreateColorCursor, SDL_FreeSurface, SDL_LoadBMP, and SDL_SetColorKey.
Referenced by main().
|
static |
Definition at line 101 of file testcustomcursor.c.
References hot_x, i, and SDL_CreateCursor.
Referenced by main().
Definition at line 150 of file testcustomcursor.c.
References current_cursor, cursors, done, i, SDLTest_CommonState::num_windows, renderer, SDLTest_CommonState::renderers, SDL_arraysize, SDL_BUTTON_LEFT, SDL_MOUSEBUTTONDOWN, SDL_PollEvent, SDL_RenderClear, SDL_RenderPresent, SDL_SetCursor, SDL_ShowCursor, SDLTest_CommonEvent(), show_cursor, and state.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 184 of file testcustomcursor.c.
References arrow, cursors, done, i, init_color_cursor(), init_system_cursor(), loop(), NULL, SDLTest_CommonState::num_windows, quit(), renderer, SDLTest_CommonState::renderers, SDL_arraysize, SDL_CreateSystemCursor, SDL_FreeCursor, SDL_INIT_VIDEO, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_NUM_SYSTEM_CURSORS, SDL_RenderClear, SDL_SetCursor, SDL_SetRenderDrawColor, SDLTest_CommonArg(), SDLTest_CommonCreateState(), SDLTest_CommonInit(), SDLTest_CommonLogUsage(), and state.
|
static |
Definition at line 143 of file testcustomcursor.c.
References SDLTest_CommonQuit(), and state.
Referenced by main().
|
static |
Definition at line 27 of file testcustomcursor.c.
Referenced by main().
|
static |
Definition at line 138 of file testcustomcursor.c.
Referenced by loop().
|
static |
Definition at line 137 of file testcustomcursor.c.
int done |
Definition at line 136 of file testcustomcursor.c.
|
static |
Definition at line 139 of file testcustomcursor.c.
Referenced by loop().
|
static |
Definition at line 135 of file testcustomcursor.c.