summaryrefslogtreecommitdiffstats
path: root/src/sdl_gfx-test.c
blob: 3a092f0d96514dcbdcc6462ce3e5cf051d8624b6 (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;
}