32#ifndef SDL_test_common_h_
33#define SDL_test_common_h_
38#define DEFAULT_WINDOW_WIDTH 480
39#define DEFAULT_WINDOW_HEIGHT 272
40#elif defined(__VITA__)
41#define DEFAULT_WINDOW_WIDTH 960
42#define DEFAULT_WINDOW_HEIGHT 544
44#define DEFAULT_WINDOW_WIDTH 640
45#define DEFAULT_WINDOW_HEIGHT 480
48#define VERBOSE_VIDEO 0x00000001
49#define VERBOSE_MODES 0x00000002
50#define VERBOSE_RENDER 0x00000004
51#define VERBOSE_EVENT 0x00000008
52#define VERBOSE_AUDIO 0x00000010
53#define VERBOSE_MOTION 0x00000020
63 const char *videodriver;
65 const char *window_title;
66 const char *window_icon;
68 SDL_bool flash_on_focus_loss;
86 const char *renderdriver;
88 SDL_bool skip_renderer;
89 SDL_Renderer **renderers;
90 SDL_Texture **targets;
93 const char *audiodriver;
104 int gl_double_buffer;
105 int gl_accum_red_size;
106 int gl_accum_green_size;
107 int gl_accum_blue_size;
108 int gl_accum_alpha_size;
110 int gl_multisamplebuffers;
111 int gl_multisamplesamples;
112 int gl_retained_backing;
114 int gl_major_version;
115 int gl_minor_version;
void SDLTest_CommonQuit(SDLTest_CommonState *state)
Close test window.
void SDLTest_CommonDrawWindowInfo(SDL_Renderer *renderer, SDL_Window *window, int *usedHeight)
Draws various window information (position, size, etc.) to the renderer.
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.
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
Common event handler for test windows.
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
Process one common argument.
SDL_bool SDLTest_CommonInit(SDLTest_CommonState *state)
Open test window.
void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const char **options)
Logs command line usage info.
const char * SDLTest_CommonUsage(SDLTest_CommonState *state)
Returns common usage information.
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:95
Definition: SDL_audio.h:181
Definition: SDL_rect.h:79
Definition: SDL_test_common.h:56
General event structure.
Definition: SDL_events.h:626