Go to the documentation of this file.
32 #ifndef SDL_test_common_h_
33 #define SDL_test_common_h_
38 #define DEFAULT_WINDOW_WIDTH 480
39 #define DEFAULT_WINDOW_HEIGHT 272
41 #define DEFAULT_WINDOW_WIDTH 640
42 #define DEFAULT_WINDOW_HEIGHT 480
45 #define VERBOSE_VIDEO 0x00000001
46 #define VERBOSE_MODES 0x00000002
47 #define VERBOSE_RENDER 0x00000004
48 #define VERBOSE_EVENT 0x00000008
49 #define VERBOSE_AUDIO 0x00000010
59 const char *videodriver;
61 const char *window_title;
62 const char *window_icon;
81 const char *renderdriver;
83 SDL_bool skip_renderer;
84 SDL_Renderer **renderers;
85 SDL_Texture **targets;
88 const char *audiodriver;
100 int gl_accum_red_size;
101 int gl_accum_green_size;
102 int gl_accum_blue_size;
103 int gl_accum_alpha_size;
105 int gl_multisamplebuffers;
106 int gl_multisamplesamples;
107 int gl_retained_backing;
109 int gl_major_version;
110 int gl_minor_version;
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
Definition: SDL_audio.h:179
void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const char **options)
Logs command line usage info.
Display * display
Definition: SDL_syswm.h:239
SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv)
Easy argument handling when test app doesn't need any custom args.
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:90
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
const char * SDLTest_CommonUsage(SDLTest_CommonState *state)
Returns common usage information.
Definition: SDL_test_common.h:52
General event structure.
Definition: SDL_events.h:592
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.