29 main(
int argc,
char *argv[])
43 for (i = 1; i < argc;) {
85 const char *typestr = (
event.type ==
SDL_DROPFILE) ?
"File" :
"Text";
86 char *dropped_filedir =
event.drop.file;
87 SDL_Log(
"%s dropped on window %u: %s", typestr, (
unsigned int) event.
drop.
windowID, dropped_filedir);
int main(int argc, char *argv[])
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
static SDL_Renderer * renderer
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_LogSetPriority
#define SDL_SetRenderDrawColor
static SDLTest_CommonState * state
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
#define SDL_RenderPresent