en proces de pasar a SDL3
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "jUnit.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
init();
|
||||
SDL_Event event;
|
||||
bool exit = false;
|
||||
while (!exit)
|
||||
{
|
||||
while (SDL_PollEvent(&event))
|
||||
{
|
||||
if ((event.type == SDL_EVENT_QUIT) || (event.type == SDL_EVENT_KEY_DOWN && event.key.repeat == 0 && event.key.key == SDLK_ESCAPE))
|
||||
{
|
||||
exit = true;
|
||||
break;
|
||||
}
|
||||
update();
|
||||
jFlip();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user