summaryrefslogtreecommitdiffstats
path: root/src/sdl_gfx-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_gfx-test.c')
-rw-r--r--src/sdl_gfx-test.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/sdl_gfx-test.c b/src/sdl_gfx-test.c
new file mode 100644
index 0000000..3a092f0
--- /dev/null
+++ b/src/sdl_gfx-test.c
@@ -0,0 +1,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;
+}