blob: 6b04e45d9ee70d5fe3cccb551660943f7cd48f3f (
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
|
/*
* This file is part of MXE. See LICENSE.md for licensing 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;
}
|