summaryrefslogtreecommitdiffstats
path: root/src/sdl2-test.c
blob: 8bd6aa7f98399bad2cd9f81efeba68960175165b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#include <SDL.h>

int main(int argc, char *argv[])
{
    SDL_Window* window = NULL;

    (void)argc;
    (void)argv;

    if (SDL_Init(SDL_INIT_VIDEO) < 0) return 1;

    window = SDL_CreateWindow("MXE test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);
    SDL_Delay(2000);
    SDL_DestroyWindow(window);
    SDL_Quit();
    return 0;
}