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[]) {