summaryrefslogtreecommitdiffstats
path: root/src/sdl2_gfx-test.c
blob: 2b6b06ccd31b3b8767d78357a8ca87d8a6d6e641 (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 <SDL2_rotozoom.h>
#include <SDL2_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;
}