mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-25 05:59:11 +00:00
SDL_test: introduce SDLTest_CommonDestroyState to only destroy SDLTest_CommonState
This commit is contained in:
parent
5109e19935
commit
08c85ebae0
2 changed files with 15 additions and 3 deletions
include/SDL3
|
@ -122,7 +122,7 @@ typedef struct
|
|||
int gl_debug;
|
||||
int gl_profile_mask;
|
||||
|
||||
/* Additional fields added in 2.0.18 */
|
||||
/* Mouse info */
|
||||
SDL_Rect confine;
|
||||
|
||||
} SDLTest_CommonState;
|
||||
|
@ -145,6 +145,13 @@ extern "C" {
|
|||
*/
|
||||
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
|
||||
|
||||
/**
|
||||
* \brief Free the common state object.
|
||||
*
|
||||
* \param state The common state object to destroy
|
||||
*/
|
||||
void SDLTest_CommonDestroyState(SDLTest_CommonState *state);
|
||||
|
||||
/**
|
||||
* \brief Process one common argument.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue