diff --git a/README.md b/README.md index 151d200..851d3bb 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,27 @@ Compiled binary will be stored in: build/binaries/mainExecutable +Copy required resources/dll to mainExecutable by command: + + gradle prepare + +### 02-sdl2-video + +Graphic initialization example for SDL2. +Initialize graphic interface, load BMP file and display it. + +Commands (PowerShell): + + gradle prepare mE + cd build\binaries\mainExecutable + .\main.exe + +Commands (Shell): + + gradle prepare mE + cd build/binaries/mainExecutable + ./main + node ---- diff --git a/sdl/02-sdl2-video/smajlik.bmp b/sdl/02-sdl2-video/src/main/resources/smajlik.bmp similarity index 78% rename from sdl/02-sdl2-video/smajlik.bmp rename to sdl/02-sdl2-video/src/main/resources/smajlik.bmp index 141a058..b25e498 100644 Binary files a/sdl/02-sdl2-video/smajlik.bmp and b/sdl/02-sdl2-video/src/main/resources/smajlik.bmp differ