Go to the source code of this file.
Classes | |
struct | SDLTest_CommonState |
Functions | |
SDLTest_CommonState * | SDLTest_CommonCreateState (char **argv, Uint32 flags) |
Parse command line parameters and create common state. More... | |
int | SDLTest_CommonArg (SDLTest_CommonState *state, int index) |
Process one common argument. More... | |
const char * | SDLTest_CommonUsage (SDLTest_CommonState *state) |
Returns common usage information. More... | |
SDL_bool | SDLTest_CommonInit (SDLTest_CommonState *state) |
Open test window. More... | |
void | SDLTest_CommonEvent (SDLTest_CommonState *state, SDL_Event *event, int *done) |
Common event handler for test windows. More... | |
void | SDLTest_CommonQuit (SDLTest_CommonState *state) |
Close test window. More... | |
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
int SDLTest_CommonArg | ( | SDLTest_CommonState * | state, |
int | index | ||
) |
Process one common argument.
state | The common state describing the test window to create. |
index | The index of the argument to process in argv[]. |
SDLTest_CommonState* SDLTest_CommonCreateState | ( | char ** | argv, |
Uint32 | flags | ||
) |
Parse command line parameters and create common state.
argv | Array of command line parameters |
flags | Flags indicating which subsystem to initialize (i.e. SDL_INIT_VIDEO | SDL_INIT_AUDIO) |
void SDLTest_CommonEvent | ( | SDLTest_CommonState * | state, |
SDL_Event * | event, | ||
int * | done | ||
) |
Common event handler for test windows.
state | The common state used to create test window. |
event | The event to handle. |
done | Flag indicating we are done. |
SDL_bool SDLTest_CommonInit | ( | SDLTest_CommonState * | state | ) |
Open test window.
state | The common state describing the test window to create. |
void SDLTest_CommonQuit | ( | SDLTest_CommonState * | state | ) |
Close test window.
state | The common state used to create test window. |
const char* SDLTest_CommonUsage | ( | SDLTest_CommonState * | state | ) |
Returns common usage information.
state | The common state describing the test window to create. |