sdltest.c 521 B

123456789101112131415161718192021222324
  1. #define SDL_MAIN_USE_CALLBACKS
  2. #include <SDL3/SDL.h>
  3. #include <SDL3/SDL_main.h>
  4. #include <SDL3/SDL_test.h>
  5. SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)
  6. {
  7. return SDL_APP_SUCCESS;
  8. }
  9. SDL_AppResult SDL_AppIterate(void *appstate)
  10. {
  11. return SDL_APP_SUCCESS;
  12. }
  13. SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
  14. {
  15. SDLTest_CommonState state;
  16. SDLTest_CommonDefaultArgs(&state, argc, argv);
  17. return SDL_APP_SUCCESS;
  18. }
  19. void SDL_AppQuit(void *appstate, SDL_AppResult result) {
  20. }