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;
Definition: SDL_audio.h:178
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:90
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
General event structure.
Definition: SDL_events.h:557
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const char **options)
Logs command line usage info.
Display * display
Definition: SDL_syswm.h:220
SDL_bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv)
Easy argument handling when test app doesn't need any custom args.
SDLTest_CommonState * SDLTest_CommonCreateState(char **argv, Uint32 flags)
Parse command line parameters and create common state.
Definition: SDL_test_common.h:51
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.