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 |
SDL_Cursor * | cursor = NULL |
|
static |
Definition at line 71 of file testcustomcursor.c.
References cursor, NULL, SDL_CreateColorCursor, SDL_FreeSurface, and SDL_LoadBMP.
Referenced by main().
|
static |
Definition at line 83 of file testcustomcursor.c.
References hot_x, i, and SDL_CreateCursor.
Referenced by main().
void loop | ( | ) |
Definition at line 130 of file testcustomcursor.c.
References done, i, SDLTest_CommonState::num_windows, renderer, SDLTest_CommonState::renderers, SDL_PollEvent, SDL_RenderClear, SDL_RenderPresent, and SDLTest_CommonEvent().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 152 of file testcustomcursor.c.
References arrow, done, i, init_color_cursor(), init_system_cursor(), loop(), NULL, SDLTest_CommonState::num_windows, quit(), renderer, SDLTest_CommonState::renderers, SDL_FreeCursor, SDL_INIT_VIDEO, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_RenderClear, SDL_SetCursor, SDL_SetRenderDrawColor, SDLTest_CommonArg(), SDLTest_CommonCreateState(), SDLTest_CommonInit(), and SDLTest_CommonUsage().
|
static |
Definition at line 123 of file testcustomcursor.c.
References SDLTest_CommonQuit().
Referenced by main().
|
static |
Definition at line 27 of file testcustomcursor.c.
Referenced by main().
SDL_Cursor* cursor = NULL |
Definition at line 119 of file testcustomcursor.c.
Referenced by _initArrowCursor(), init_color_cursor(), mouse_createFreeColorCursor(), mouse_createFreeCursor(), mouse_getCursor(), mouse_setCursor(), SDL_CreateColorCursor(), SDL_CreateCursor(), SDL_CreateSystemCursor(), SDL_MouseQuit(), SDL_SetCursor(), SDL_SetDefaultCursor(), and SDL_TrackAllocation().
int done |
Definition at line 118 of file testcustomcursor.c.
|
static |
Definition at line 117 of file testcustomcursor.c.