mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
add sdl2 test
This commit is contained in:
parent
818fc825ba
commit
48651da7ad
1 changed files with 19 additions and 0 deletions
19
test/sdl2.cpp
Normal file
19
test/sdl2.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <SDL.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
SDL_Event dummy;
|
||||
|
||||
while (SDL_PollEvent(&dummy))
|
||||
{
|
||||
}
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue