From 3fbb5c1b83453475cbebf1d8cf6439b04e1d97ec Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Mon, 25 Nov 2013 20:39:11 +0100 Subject: [PATCH] add sdl source code --- sdl/01-sdl2-init/01-sdl2-init.cpp | 13 +++++++++++++ sdl/02-sdl2-video/02-sdl2-video.cpp | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sdl/01-sdl2-init/01-sdl2-init.cpp diff --git a/sdl/01-sdl2-init/01-sdl2-init.cpp b/sdl/01-sdl2-init/01-sdl2-init.cpp new file mode 100644 index 0000000..73b8a1c --- /dev/null +++ b/sdl/01-sdl2-init/01-sdl2-init.cpp @@ -0,0 +1,13 @@ +// sdl2-sample.cpp : SDL2 example - initialize and quit +// + +#include +#include "SDL.h" + +int _tmain(int argc, _TCHAR* argv[]) +{ + SDL_Init(SDL_INIT_EVERYTHING); + SDL_Quit(); + return 0; +} + diff --git a/sdl/02-sdl2-video/02-sdl2-video.cpp b/sdl/02-sdl2-video/02-sdl2-video.cpp index cc9a39b..e7e0f45 100644 --- a/sdl/02-sdl2-video/02-sdl2-video.cpp +++ b/sdl/02-sdl2-video/02-sdl2-video.cpp @@ -1,7 +1,8 @@ // 02-sdl2-video.cpp : SDL2 example - initialize video and display image // -#include "stdafx.h" +#include +#include #include "SDL.h" int _tmain(int argc, _TCHAR* argv[]) {