blob: e957f2e5b0f37c182932cce48a4af3ae75a74745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <SDL.h>
#include <SDL_rotozoom.h>
#include <SDL_framerate.h>
int main(int argc, char* argv[])
{
FPSmanager framerate_manager;
(void)argc;
(void)argv;
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1;
SDL_initFramerate(&framerate_manager);
SDL_setFramerate(&framerate_manager, 60);
SDL_framerateDelay(&framerate_manager);
SDL_Quit();
return 0;
}
|