├── Project_1945_source ├── resources │ ├── data.txt │ ├── ui │ │ ├── appicon.rc │ │ ├── Icon.ico │ │ ├── Icon.png │ │ ├── life.png │ │ ├── Title.png │ │ └── bottom.png │ ├── score.png │ ├── loading.gif │ ├── 1945_atlas.bmp │ ├── extra │ │ ├── Icon.ico │ │ ├── Boss1.gif │ │ ├── Boss2.gif │ │ ├── Boss3.gif │ │ ├── Bullet.gif │ │ ├── Music.mid │ │ ├── Music.mp3 │ │ ├── Panel.gif │ │ ├── Plane1.gif │ │ ├── Plane2.gif │ │ ├── Score.bmp │ │ ├── Title.bmp │ │ ├── Title.png │ │ ├── Enemy_up.gif │ │ ├── Island1.gif │ │ ├── Island2.gif │ │ ├── Island3.gif │ │ ├── Loading.gif │ │ ├── airplane1.gif │ │ ├── airplane2.gif │ │ ├── airplane3.gif │ │ ├── airplane4.gif │ │ ├── airplane5.gif │ │ ├── airplane6.gif │ │ ├── airplane7.gif │ │ ├── airplane8.gif │ │ ├── airplane9.gif │ │ ├── Background.bmp │ │ ├── Enemy_basic.gif │ │ ├── Enemy_left.gif │ │ ├── Enemy_right.gif │ │ ├── Enemy_shoot.gif │ │ ├── Explosion1.gif │ │ ├── Explosion1.wav │ │ ├── Explosion2.gif │ │ ├── Explosion2.wav │ │ ├── airplane10.gif │ │ ├── airplane11.gif │ │ ├── airplane12.gif │ │ ├── airplane13.gif │ │ ├── airplane14.gif │ │ ├── airplane15.gif │ │ ├── airplane16.gif │ │ ├── airplane17.gif │ │ ├── airplane18.gif │ │ ├── airplane19.gif │ │ ├── airplane20.gif │ │ ├── airplane21.gif │ │ ├── Enemy_bullet.gif │ │ ├── Enemy_target.gif │ │ └── all_as_strip.bmp │ ├── font │ │ └── atari.ttf │ ├── map │ │ ├── water.png │ │ ├── island1.png │ │ ├── island2.png │ │ └── island3.png │ ├── player │ │ ├── bullet.png │ │ ├── myplane_strip3.png │ │ └── explosion2_strip7.png │ ├── audio │ │ ├── background.mp3 │ │ ├── snd_explosion1.wav │ │ └── snd_explosion2.wav │ └── enemy │ │ ├── enemy1_strip3.png │ │ ├── enemy2_strip3.png │ │ ├── enemy3_strip3.png │ │ ├── enemy4_strip3.png │ │ ├── enemybullet1.png │ │ ├── enemybullet2.png │ │ └── explosion1_strip6.png ├── cmake │ ├── sdl2 │ │ ├── include │ │ │ ├── SDL_revision.h │ │ │ ├── SDL_copying.h │ │ │ ├── SDL_opengles2_gl2platform.h │ │ │ ├── SDL_types.h │ │ │ ├── SDL_name.h │ │ │ ├── SDL_opengles.h │ │ │ ├── close_code.h │ │ │ ├── SDL_opengles2.h │ │ │ ├── SDL_test_memory.h │ │ │ ├── SDL_test_log.h │ │ │ ├── SDL_clipboard.h │ │ │ ├── SDL_test.h │ │ │ ├── SDL_quit.h │ │ │ ├── SDL_test_compare.h │ │ │ ├── SDL_gesture.h │ │ │ ├── SDL_test_images.h │ │ │ ├── SDL_error.h │ │ │ ├── SDL_power.h │ │ │ ├── SDL_test_font.h │ │ │ ├── SDL_config_minimal.h │ │ │ ├── SDL_metal.h │ │ │ ├── SDL_loadso.h │ │ │ ├── SDL_touch.h │ │ │ ├── SDL_bits.h │ │ │ ├── SDL_test_random.h │ │ │ ├── SDL_config_wiz.h │ │ │ ├── SDL_test_assert.h │ │ │ ├── SDL_config_pandora.h │ │ │ ├── SDL_test_crc32.h │ │ │ └── SDL_timer.h │ │ ├── lib │ │ │ ├── x64 │ │ │ │ ├── SDL2.dll │ │ │ │ ├── SDL2.lib │ │ │ │ ├── SDL2main.lib │ │ │ │ └── SDL2test.lib │ │ │ └── x86 │ │ │ │ ├── SDL2.dll │ │ │ │ ├── SDL2.lib │ │ │ │ ├── SDL2main.lib │ │ │ │ └── SDL2test.lib │ │ ├── docs │ │ │ ├── README-platforms.md │ │ │ ├── README-wince.md │ │ │ ├── README-psp.md │ │ │ ├── README-pandora.md │ │ │ ├── README-hg.md │ │ │ ├── README-emscripten.md │ │ │ ├── README-porting.md │ │ │ ├── README.md │ │ │ ├── README-windows.md │ │ │ ├── README-directfb.md │ │ │ ├── README-cmake.md │ │ │ ├── README-linux.md │ │ │ └── README-gesture.md │ │ ├── README-SDL.txt │ │ ├── BUGS.txt │ │ ├── README.txt │ │ └── COPYING.txt │ ├── sdl2_image │ │ ├── lib │ │ │ ├── x64 │ │ │ │ ├── zlib1.dll │ │ │ │ ├── SDL2_image.dll │ │ │ │ ├── SDL2_image.lib │ │ │ │ ├── libjpeg-9.dll │ │ │ │ ├── libtiff-5.dll │ │ │ │ ├── libwebp-7.dll │ │ │ │ ├── libpng16-16.dll │ │ │ │ ├── LICENSE.tiff.txt │ │ │ │ ├── LICENSE.webp.txt │ │ │ │ ├── LICENSE.zlib.txt │ │ │ │ └── LICENSE.jpeg.txt │ │ │ └── x86 │ │ │ │ ├── zlib1.dll │ │ │ │ ├── SDL2_image.dll │ │ │ │ ├── SDL2_image.lib │ │ │ │ ├── libjpeg-9.dll │ │ │ │ ├── libtiff-5.dll │ │ │ │ ├── libwebp-7.dll │ │ │ │ ├── libpng16-16.dll │ │ │ │ ├── LICENSE.tiff.txt │ │ │ │ ├── LICENSE.webp.txt │ │ │ │ ├── LICENSE.zlib.txt │ │ │ │ └── LICENSE.jpeg.txt │ │ ├── COPYING.txt │ │ └── README.txt │ ├── sdl2_ttf │ │ ├── lib │ │ │ ├── x64 │ │ │ │ ├── zlib1.dll │ │ │ │ ├── SDL2_ttf.dll │ │ │ │ ├── SDL2_ttf.lib │ │ │ │ ├── libfreetype-6.dll │ │ │ │ └── LICENSE.zlib.txt │ │ │ └── x86 │ │ │ │ ├── zlib1.dll │ │ │ │ ├── SDL2_ttf.dll │ │ │ │ ├── SDL2_ttf.lib │ │ │ │ ├── libfreetype-6.dll │ │ │ │ └── LICENSE.zlib.txt │ │ ├── COPYING.txt │ │ ├── README.txt │ │ └── CHANGES.txt │ └── sdl2_mixer │ │ ├── lib │ │ ├── x64 │ │ │ ├── SDL2_mixer.dll │ │ │ ├── SDL2_mixer.lib │ │ │ ├── libFLAC-8.dll │ │ │ ├── libogg-0.dll │ │ │ ├── libopus-0.dll │ │ │ ├── libmodplug-1.dll │ │ │ ├── libmpg123-0.dll │ │ │ ├── libvorbis-0.dll │ │ │ ├── libopusfile-0.dll │ │ │ ├── libvorbisfile-3.dll │ │ │ ├── LICENSE.modplug.txt │ │ │ ├── LICENSE.ogg-vorbis.txt │ │ │ ├── LICENSE.opusfile.txt │ │ │ ├── LICENSE.FLAC.txt │ │ │ └── LICENSE.opus.txt │ │ └── x86 │ │ │ ├── SDL2_mixer.dll │ │ │ ├── SDL2_mixer.lib │ │ │ ├── libFLAC-8.dll │ │ │ ├── libogg-0.dll │ │ │ ├── libopus-0.dll │ │ │ ├── libmodplug-1.dll │ │ │ ├── libmpg123-0.dll │ │ │ ├── libvorbis-0.dll │ │ │ ├── libopusfile-0.dll │ │ │ ├── libvorbisfile-3.dll │ │ │ ├── LICENSE.modplug.txt │ │ │ ├── LICENSE.ogg-vorbis.txt │ │ │ ├── LICENSE.opusfile.txt │ │ │ ├── LICENSE.FLAC.txt │ │ │ └── LICENSE.opus.txt │ │ ├── COPYING.txt │ │ └── README.txt ├── include │ ├── Inputs.h │ ├── AudioMgr.h │ ├── RenderMgr.h │ ├── Islands.h │ ├── Utility.h │ ├── FontMgr.h │ ├── Actors.h │ ├── Game_Actors.h │ └── Scene.h ├── src │ ├── Inputs.c │ ├── AudioMgr.c │ ├── Islands.c │ ├── RenderMgr.c │ ├── main.c │ └── Utility.c ├── .vscode │ ├── settings.json │ ├── c_cpp_properties.json │ ├── tasks.json │ └── launch.json └── CMakeLists.txt └── .gitattributes /Project_1945_source/resources/data.txt: -------------------------------------------------------------------------------- 1 | BestScore: 0 2 | BossKills: 0 -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/appicon.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "Icon.ico" -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-13609:34cc7d3b69d3" 2 | #define SDL_REVISION_NUMBER 13609 3 | -------------------------------------------------------------------------------- /Project_1945_source/resources/score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/score.png -------------------------------------------------------------------------------- /Project_1945_source/resources/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/loading.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/ui/Icon.ico -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/ui/Icon.png -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/life.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/ui/life.png -------------------------------------------------------------------------------- /Project_1945_source/resources/1945_atlas.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/1945_atlas.bmp -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Icon.ico -------------------------------------------------------------------------------- /Project_1945_source/resources/font/atari.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/font/atari.ttf -------------------------------------------------------------------------------- /Project_1945_source/resources/map/water.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/map/water.png -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/Title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/ui/Title.png -------------------------------------------------------------------------------- /Project_1945_source/resources/ui/bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/ui/bottom.png -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Boss1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Boss1.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Boss2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Boss2.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Boss3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Boss3.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Bullet.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Music.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Music.mid -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Music.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Music.mp3 -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Panel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Panel.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Plane1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Plane1.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Plane2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Plane2.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Score.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Score.bmp -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Title.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Title.bmp -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Title.png -------------------------------------------------------------------------------- /Project_1945_source/resources/map/island1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/map/island1.png -------------------------------------------------------------------------------- /Project_1945_source/resources/map/island2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/map/island2.png -------------------------------------------------------------------------------- /Project_1945_source/resources/map/island3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/map/island3.png -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x64/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x64/SDL2.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x64/SDL2.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x86/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x86/SDL2.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x86/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x86/SDL2.lib -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_up.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Island1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Island1.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Island2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Island2.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Island3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Island3.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Loading.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane1.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane2.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane3.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane4.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane5.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane6.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane7.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane8.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane9.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/player/bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/player/bullet.png -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x64/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x64/SDL2main.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x64/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x64/SDL2test.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x86/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x86/SDL2main.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/lib/x86/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2/lib/x86/SDL2test.lib -------------------------------------------------------------------------------- /Project_1945_source/resources/audio/background.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/audio/background.mp3 -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Background.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Background.bmp -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_basic.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_basic.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_left.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_right.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_shoot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_shoot.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Explosion1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Explosion1.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Explosion1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Explosion1.wav -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Explosion2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Explosion2.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Explosion2.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Explosion2.wav -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane10.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane11.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane12.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane13.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane14.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane15.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane16.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane17.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane18.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane19.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane20.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/airplane21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/airplane21.gif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/zlib1.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/zlib1.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x64/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x64/zlib1.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x86/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x86/zlib1.dll -------------------------------------------------------------------------------- /Project_1945_source/resources/audio/snd_explosion1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/audio/snd_explosion1.wav -------------------------------------------------------------------------------- /Project_1945_source/resources/audio/snd_explosion2.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/audio/snd_explosion2.wav -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemy1_strip3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemy1_strip3.png -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemy2_strip3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemy2_strip3.png -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemy3_strip3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemy3_strip3.png -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemy4_strip3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemy4_strip3.png -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemybullet1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemybullet1.png -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/enemybullet2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/enemybullet2.png -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_bullet.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/Enemy_target.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/Enemy_target.gif -------------------------------------------------------------------------------- /Project_1945_source/resources/extra/all_as_strip.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/extra/all_as_strip.bmp -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x64/SDL2_ttf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x64/SDL2_ttf.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x64/SDL2_ttf.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x64/SDL2_ttf.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x86/SDL2_ttf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x86/SDL2_ttf.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x86/SDL2_ttf.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x86/SDL2_ttf.lib -------------------------------------------------------------------------------- /Project_1945_source/resources/player/myplane_strip3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/player/myplane_strip3.png -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/SDL2_image.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/SDL2_image.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/SDL2_image.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/libjpeg-9.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/libjpeg-9.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/libtiff-5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/libtiff-5.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/libwebp-7.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/libwebp-7.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/SDL2_image.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/SDL2_image.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/SDL2_image.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/libjpeg-9.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/libjpeg-9.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/libtiff-5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/libtiff-5.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/libwebp-7.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/libwebp-7.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/SDL2_mixer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/SDL2_mixer.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/SDL2_mixer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/SDL2_mixer.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libFLAC-8.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libFLAC-8.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libogg-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libogg-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libopus-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libopus-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/SDL2_mixer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/SDL2_mixer.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/SDL2_mixer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/SDL2_mixer.lib -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libFLAC-8.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libFLAC-8.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libogg-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libogg-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libopus-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libopus-0.dll -------------------------------------------------------------------------------- /Project_1945_source/resources/enemy/explosion1_strip6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/enemy/explosion1_strip6.png -------------------------------------------------------------------------------- /Project_1945_source/resources/player/explosion2_strip7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/resources/player/explosion2_strip7.png -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/libpng16-16.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x64/libpng16-16.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/libpng16-16.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_image/lib/x86/libpng16-16.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libmodplug-1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libmodplug-1.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libmpg123-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libmpg123-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libvorbis-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libvorbis-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libmodplug-1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libmodplug-1.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libmpg123-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libmpg123-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libvorbis-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libvorbis-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x64/libfreetype-6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x64/libfreetype-6.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x86/libfreetype-6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_ttf/lib/x86/libfreetype-6.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libopusfile-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libopusfile-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/libvorbisfile-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x64/libvorbisfile-3.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libopusfile-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libopusfile-0.dll -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/libvorbisfile-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TronusGames/Project-1945-by-Tronus/HEAD/Project_1945_source/cmake/sdl2_mixer/lib/x86/libvorbisfile-3.dll -------------------------------------------------------------------------------- /Project_1945_source/include/Inputs.h: -------------------------------------------------------------------------------- 1 | #ifndef INPUTS_H_ 2 | #define INPUTS_H_ 3 | #include 4 | #include 5 | 6 | 7 | SDL_Event sdl_event; 8 | 9 | void Update_InputEvents(); 10 | 11 | 12 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-platforms.md: -------------------------------------------------------------------------------- 1 | Platforms 2 | ========= 3 | 4 | We maintain the list of supported platforms on our wiki now, and how to 5 | build and install SDL for those platforms: 6 | 7 | https://wiki.libsdl.org/Installation 8 | 9 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/LICENSE.modplug.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | ModPlug-XMMS and libmodplug are now in the public domain. 6 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/LICENSE.modplug.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | ModPlug-XMMS and libmodplug are now in the public domain. 6 | -------------------------------------------------------------------------------- /Project_1945_source/src/Inputs.c: -------------------------------------------------------------------------------- 1 | #include "Inputs.h" 2 | 3 | 4 | void Update_InputEvents() { 5 | while (SDL_PollEvent(&sdl_event)) { 6 | if (sdl_event.type == SDL_QUIT) { 7 | quit_game = 1; 8 | break; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-wince.md: -------------------------------------------------------------------------------- 1 | WinCE 2 | ===== 3 | 4 | Windows CE is no longer supported by SDL. 5 | 6 | We have left the CE support in SDL 1.2 for those that must have it, and we 7 | have support for Windows Phone 8 and WinRT in SDL2, as of SDL 2.0.3. 8 | 9 | --ryan. 10 | 11 | -------------------------------------------------------------------------------- /Project_1945_source/include/AudioMgr.h: -------------------------------------------------------------------------------- 1 | #ifndef AUDIO_MGR_H_ 2 | #define AUDIO_MGR_H_ 3 | #include 4 | #include 5 | 6 | 7 | typedef struct 8 | { 9 | Mix_Music* music; 10 | Mix_Chunk* expl1; 11 | Mix_Chunk* player_expl; 12 | } AudioMgr; 13 | 14 | AudioMgr audio_mgr; 15 | 16 | 17 | void Init_AudioMgr(AudioMgr* audioMgr); 18 | 19 | 20 | 21 | #endif -------------------------------------------------------------------------------- /Project_1945_source/src/AudioMgr.c: -------------------------------------------------------------------------------- 1 | #include "AudioMgr.h" 2 | 3 | 4 | void Init_AudioMgr(AudioMgr* audioMgr){ 5 | Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 4, 2048); 6 | 7 | audioMgr->music = Mix_LoadMUS("resources/audio/background.mp3"); 8 | audioMgr->expl1 = Mix_LoadWAV("resources/audio/snd_explosion1.wav"); 9 | audioMgr->player_expl = Mix_LoadWAV("resources/audio/snd_explosion2.wav"); 10 | 11 | Mix_PlayMusic(audioMgr->music, -1); 12 | } -------------------------------------------------------------------------------- /Project_1945_source/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake.configureSettings": { 3 | 4 | "CMAKE_MODULE_PATH": "${workspaceFolder}/cmake/", 5 | "SDL2_PATH" : "${workspaceFolder}/cmake/sdl2", 6 | "SDL2_IMAGE_PATH": "${workspaceFolder}/cmake/sdl2_image/", 7 | "SDL2_TTF_PATH": "${workspaceFolder}/cmake/sdl2_ttf/", 8 | "SDL2_MIXER_PATH": "${workspaceFolder}/cmake/sdl2_mixer/", 9 | }, 10 | "cmake.configureOnOpen": true 11 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-psp.md: -------------------------------------------------------------------------------- 1 | PSP 2 | ====== 3 | SDL port for the Sony PSP contributed by 4 | Captian Lex 5 | 6 | Credit to 7 | Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP 8 | Geecko for his PSP GU lib "Glib2d" 9 | 10 | Building 11 | -------- 12 | To build for the PSP, make sure psp-config is in the path and run: 13 | make -f Makefile.psp 14 | 15 | 16 | 17 | To Do 18 | ------ 19 | PSP Screen Keyboard 20 | -------------------------------------------------------------------------------- /Project_1945_source/include/RenderMgr.h: -------------------------------------------------------------------------------- 1 | #ifndef RENDERMGR_H_ 2 | #define RENDERMGR_H_ 3 | #include 4 | #include 5 | 6 | #define WINDOW_HEIGHT 480 7 | #define WINDOW_WIDTH 640 8 | 9 | 10 | SDL_Window* window; 11 | SDL_Renderer* renderer; 12 | 13 | typedef struct { 14 | SDL_Texture* texture; 15 | SDL_Rect* rect; 16 | } Sprite; 17 | 18 | void CreateWindow(); 19 | void CreateRenderer(); 20 | SDL_Texture* CreateTexture(char* filePath); 21 | 22 | 23 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games 6 | and emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | https://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | https://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help at the SDL forums/mailing list: 11 | 12 | https://discourse.libsdl.org/ 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /Project_1945_source/include/Islands.h: -------------------------------------------------------------------------------- 1 | #ifndef ISLANDS_H_ 2 | #define ISLANDS_H_ 3 | #include 4 | #include 5 | 6 | typedef struct Island Island; 7 | 8 | struct Island{ 9 | SDL_Texture* texture; 10 | SDL_Rect* rect; 11 | float speed; 12 | }; 13 | 14 | #include 15 | #include "Scene.h" 16 | 17 | 18 | void CreateIslands(Scene* scene); 19 | Island* CreateIsland(char* island_texture_path, int w, int h); 20 | void Set_Island_Random_SpawnPoint(SDL_Rect* rect); 21 | void Set_Island_Random_Size(SDL_Rect* rect); 22 | void Update_Islands(Scene* scene); 23 | 24 | #endif -------------------------------------------------------------------------------- /Project_1945_source/include/Utility.h: -------------------------------------------------------------------------------- 1 | #ifndef UTILITY_H_ 2 | #define UTILITY_H_ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | char title[100]; 12 | int freq; 13 | int curr_count; 14 | int last_count; 15 | float delta_time; 16 | float update_time; 17 | float time_passed; 18 | int fps; 19 | const Uint8* keyboard_state; 20 | 21 | 22 | void Init_Utility(); 23 | void Update_DeltaTime(); 24 | int Get_Random_Number(int num_min, int num_max); 25 | 26 | int Get_Best_Score(); 27 | int Get_Boss_Kills(); 28 | int Save_Data(Scene* scene); 29 | 30 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | https://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | More extensive documentation is available in the docs directory, starting 18 | with README.md 19 | 20 | Enjoy! 21 | Sam Lantinga (slouken@libsdl.org) 22 | -------------------------------------------------------------------------------- /Project_1945_source/.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Win32", 5 | "includePath": [ 6 | "${workspaceFolder}/**" 7 | ], 8 | "defines": [ 9 | "_DEBUG", 10 | "UNICODE", 11 | "_UNICODE" 12 | ], 13 | "windowsSdkVersion": "10.0.18362.0", 14 | "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe", 15 | "cStandard": "c17", 16 | "cppStandard": "c++17", 17 | "intelliSenseMode": "msvc-x64", 18 | "configurationProvider": "ms-vscode.cmake-tools" 19 | } 20 | ], 21 | "version": 4 22 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-pandora.md: -------------------------------------------------------------------------------- 1 | Pandora 2 | ===================================================================== 3 | 4 | ( http://openpandora.org/ ) 5 | - A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES 6 | support to work on the pandora under the framebuffer. This driver do not have 7 | input support for now, so if you use it you will have to add your own control code. 8 | The video driver name is "pandora" so if you have problem running it from 9 | the framebuffer, try to set the following variable before starting your application : 10 | "export SDL_VIDEODRIVER=pandora" 11 | 12 | - OpenGL ES support was added to the x11 driver, so it's working like the normal 13 | x11 driver one with OpenGLX support, with SDL input event's etc.. 14 | 15 | 16 | David Carré (Cpasjuste) 17 | cpasjuste@gmail.com 18 | -------------------------------------------------------------------------------- /Project_1945_source/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": [ 3 | { 4 | "type": "cppbuild", 5 | "label": "C/C++: clang.exe build active file", 6 | "command": "C:\\Program Files\\LLVM\\bin\\clang.exe", 7 | "args": [ 8 | "-g", 9 | "${file}", 10 | "-o", 11 | "${fileDirname}\\${fileBasenameNoExtension}.exe" 12 | ], 13 | "options": { 14 | "cwd": "C:\\Program Files\\LLVM\\bin" 15 | }, 16 | "problemMatcher": [ 17 | "$gcc" 18 | ], 19 | "group": { 20 | "kind": "build", 21 | "isDefault": true 22 | }, 23 | "detail": "Generated task by Debugger" 24 | } 25 | ], 26 | "version": "2.0.0" 27 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-hg.md: -------------------------------------------------------------------------------- 1 | Mercurial 2 | ========= 3 | 4 | The latest development version of SDL is available via Mercurial. 5 | Mercurial allows you to get up-to-the-minute fixes and enhancements; 6 | as a developer works on a source tree, you can use "hg" to mirror that 7 | source tree instead of waiting for an official release. Please look 8 | at the Mercurial website ( https://www.mercurial-scm.org/ ) for more 9 | information on using hg, where you can also download software for 10 | Mac OS X, Windows, and Unix systems. 11 | 12 | hg clone http://hg.libsdl.org/SDL 13 | 14 | If you are building SDL via configure, you will need to run autogen.sh 15 | before running configure. 16 | 17 | There is a web interface to the subversion repository at: 18 | http://hg.libsdl.org/SDL/ 19 | 20 | There is an RSS feed available at that URL, for those that want to 21 | track commits in real time. 22 | 23 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/COPYING.txt: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_mixer: An audio mixer library based on the SDL library 3 | Copyright (C) 1997-2018 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/COPYING.txt: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_image: An example image loading library for use with SDL 3 | Copyright (C) 1997-2019 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/COPYING.txt: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts 3 | Copyright (C) 1997-2019 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-emscripten.md: -------------------------------------------------------------------------------- 1 | Emscripten 2 | ================================================================================ 3 | 4 | Build: 5 | 6 | $ mkdir build 7 | $ cd build 8 | $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2" 9 | $ emmake make 10 | 11 | Or with cmake: 12 | 13 | $ mkdir build 14 | $ cd build 15 | $ emcmake cmake .. 16 | $ emmake make 17 | 18 | To build one of the tests: 19 | 20 | $ cd test/ 21 | $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html 22 | 23 | Uses GLES2 renderer or software 24 | 25 | Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere): 26 | 27 | SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/): 28 | 29 | $ EMCONFIGURE_JS=1 emconfigure ../configure 30 | build as usual... 31 | 32 | SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx): 33 | 34 | $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx 35 | build as usual... 36 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This library is a wrapper around the excellent FreeType 2.0 library, 3 | available at: 4 | http://www.freetype.org/ 5 | 6 | This library allows you to use TrueType fonts to render text in SDL 7 | applications. 8 | 9 | To make the library, first install the FreeType library, then type 10 | './configure' then 'make' to build the SDL truetype library and the 11 | showfont and glfont example applications. 12 | 13 | Be careful when including fonts with your application, as many of them 14 | are copyrighted. The Microsoft fonts, for example, are not freely 15 | redistributable and even the free "web" fonts they provide are only 16 | redistributable in their special executable installer form (May 1998). 17 | There are plenty of freeware and shareware fonts available on the Internet 18 | though, and may suit your purposes. 19 | 20 | This library is under the zlib license, see the file "COPYING.txt" for details. 21 | 22 | Portions of this software are copyright © 2013 The FreeType Project (www.freetype.org). All rights reserved. 23 | 24 | Enjoy! 25 | -Sam Lantinga (6/20/2001) 26 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /Project_1945_source/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "clang.exe - Compila ed esegui il debug del file attivo", 9 | "type": "cppdbg", 10 | "request": "launch", 11 | "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", 12 | "args": [], 13 | "stopAtEntry": false, 14 | "cwd": "${workspaceFolder}", 15 | "environment": [], 16 | "externalConsole": false, 17 | "MIMode": "lldb", 18 | "miDebuggerPath": "\\usr\\bin\\lldb-mi.exe", 19 | "setupCommands": [ 20 | { 21 | "description": "Abilita la riformattazione per gdb", 22 | "text": "-enable-pretty-printing", 23 | "ignoreFailures": true 24 | } 25 | ], 26 | "preLaunchTask": "C/C++: clang.exe build active file" 27 | } 28 | ] 29 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /Project_1945_source/include/FontMgr.h: -------------------------------------------------------------------------------- 1 | #ifndef FONT_MGR_H_ 2 | #define FONT_MGR_H_ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | 13 | typedef struct 14 | { 15 | TTF_Font* font; 16 | SDL_Color color_font; 17 | SDL_Texture* score_texture; 18 | SDL_Rect score_rect; 19 | int nDigits; 20 | 21 | SDL_Texture* you_won_texture; 22 | SDL_Rect you_won_rect; 23 | 24 | SDL_Texture* wave_texture; 25 | SDL_Rect wave_rect; 26 | 27 | SDL_Texture* e_texture; 28 | SDL_Rect e_rect; 29 | SDL_Texture* embark_texture; 30 | SDL_Rect embark_rect; 31 | 32 | SDL_Texture* q_texture; 33 | SDL_Rect q_rect; 34 | SDL_Texture* quit_texture; 35 | SDL_Rect quit_rect; 36 | 37 | SDL_Texture* best_score_texture; 38 | SDL_Rect best_score_rect; 39 | 40 | SDL_Texture* boss_kills_texture; 41 | SDL_Rect boss_kills_rect; 42 | } FontMgr; 43 | 44 | FontMgr fontMgr; 45 | 46 | 47 | void Init_FontMgr(Scene* scene); 48 | void Create_Menu(); 49 | 50 | void Change_Score_Text(Scene* scene); 51 | void Change_Best_Score_Text(Scene* scene); 52 | void Change_Boss_Kills(Scene* scene, int* kills_num); 53 | void Change_Wave_Text(Scene* scene); 54 | 55 | void Draw_Score(); 56 | void Draw_Wave(); 57 | void Draw_You_Won(); 58 | 59 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/LICENSE.tiff.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 1988-1997 Sam Leffler 6 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 7 | 8 | Permission to use, copy, modify, distribute, and sell this software and 9 | its documentation for any purpose is hereby granted without fee, provided 10 | that (i) the above copyright notices and this permission notice appear in 11 | all copies of the software and related documentation, and (ii) the names of 12 | Sam Leffler and Silicon Graphics may not be used in any advertising or 13 | publicity relating to the software without the specific, prior written 14 | permission of Sam Leffler and Silicon Graphics. 15 | 16 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 18 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 19 | 20 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 21 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 22 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 23 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 24 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 25 | OF THIS SOFTWARE. 26 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/LICENSE.tiff.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 1988-1997 Sam Leffler 6 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 7 | 8 | Permission to use, copy, modify, distribute, and sell this software and 9 | its documentation for any purpose is hereby granted without fee, provided 10 | that (i) the above copyright notices and this permission notice appear in 11 | all copies of the software and related documentation, and (ii) the names of 12 | Sam Leffler and Silicon Graphics may not be used in any advertising or 13 | publicity relating to the software without the specific, prior written 14 | permission of Sam Leffler and Silicon Graphics. 15 | 16 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 18 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 19 | 20 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 21 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 22 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 23 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 24 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 25 | OF THIS SOFTWARE. 26 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x64/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_ttf can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2010 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/lib/x86/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_ttf can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2010 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/README.txt: -------------------------------------------------------------------------------- 1 | 2 | SDL_image 2.0 3 | 4 | The latest version of this library is available from: 5 | http://www.libsdl.org/projects/SDL_image/ 6 | 7 | This is a simple library to load images of various formats as SDL surfaces. 8 | This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG, 9 | TGA, TIFF, and simple SVG formats. 10 | 11 | API: 12 | #include "SDL_image.h" 13 | 14 | SDL_Surface *IMG_Load(const char *file); 15 | or 16 | SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); 17 | or 18 | SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type); 19 | 20 | where type is a string specifying the format (i.e. "PNG" or "pcx"). 21 | Note that IMG_Load_RW cannot load TGA images. 22 | 23 | To create a surface from an XPM image included in C source, use: 24 | 25 | SDL_Surface *IMG_ReadXPMFromArray(char **xpm); 26 | 27 | An example program 'showimage' is included, with source in showimage.c 28 | 29 | JPEG support requires the JPEG library: http://www.ijg.org/ 30 | PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html 31 | and the Zlib library: http://www.gzip.org/zlib/ 32 | TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/ 33 | 34 | If you have these libraries installed in non-standard places, you can 35 | try adding those paths to the configure script, e.g. 36 | sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib" 37 | If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH 38 | so shared library loading works correctly. 39 | 40 | This library is under the zlib License, see the file "COPYING.txt" for details. 41 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_ttf/CHANGES.txt: -------------------------------------------------------------------------------- 1 | 2.0.15: 2 | Sam Lantinga - Fri Oct 26 13:26:54 PDT 2018 3 | * Updated to FreeType version 2.9.1 4 | Sam Lantinga - Sun Sep 10 00:18:45 PDT 2017 5 | * Text rendering functions now use the alpha component of the text colors 6 | Sam Lantinga - Sat Sep 9 22:21:55 PDT 2017 7 | * Added support for characters greater than 0xFFFF (e.g. emoji) in the UTF-8 APIs 8 | 9 | 2.0.14: 10 | Ryan Gordon - Fri Jan 29 12:53:29 PST 2016 11 | * Deprecated TTF_GetFontKerningSize() which takes font glyph indices and added TTF_GetFontKerningSizeGlyphs() which takes characters 12 | 13 | 2.0.13: 14 | Sylvain - Sat Jun 28 11:42:42 2014 15 | * Fixed bug rendering text starting with a glyph with negative starting offset 16 | beuc - Sun Jun 15 18:27:28 2014 17 | * Fixed regression loading non-scalable fonts 18 | Sam Lantinga - Sun Jun 15 18:21:04 PDT 2014 19 | * TTF_GetFontKerningSize() gets kerning between two characters, not two glyph indices 20 | David Ludwig - Sun Apr 13 22:28:26 2014 21 | * Added support for building for Windows RT and Windows Phone 22 | 23 | 2.0.12: 24 | Sam Lantinga - Sat Jun 1 19:11:26 PDT 2013 25 | * Updated for SDL 2.0 release 26 | 27 | 2.0.11: 28 | Sam Lantinga - Sat Dec 31 10:49:42 EST 2011 29 | * SDL_ttf is now under the zlib license 30 | Peter Kosyh - Mon Feb 28 14:57:03 PST 2011 31 | * Improved font glyph caching for non-latin languages 32 | Erik Snoek - Wed Jan 12 09:10:15 PST 2011 33 | * Added API to get kerning info: TTF_GetFontKerningSize() 34 | Sam Lantinga - Mon Jan 10 10:58:34 2011 -0800 35 | * Added Android.mk to build on the Android platform 36 | 37 | 2.0.10: 38 | Adam Strzelecki - Wed Oct 21 21:02:37 PDT 2009 39 | * Find the Unicode or symbol character map if it's available in the font 40 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/LICENSE.ogg-vorbis.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2002-2008 Xiph.org Foundation 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/LICENSE.ogg-vorbis.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2002-2008 Xiph.org Foundation 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/LICENSE.opusfile.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (c) 1994-2013 Xiph.Org Foundation and contributors 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.Org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/LICENSE.opusfile.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (c) 1994-2013 Xiph.Org Foundation and contributors 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.Org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/LICENSE.FLAC.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 26 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/LICENSE.FLAC.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 26 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/LICENSE.webp.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2010, Google Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are 9 | met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in 16 | the documentation and/or other materials provided with the 17 | distribution. 18 | 19 | * Neither the name of Google nor the names of its contributors may 20 | be used to endorse or promote products derived from this software 21 | without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/LICENSE.webp.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2010, Google Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are 9 | met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in 16 | the documentation and/or other materials provided with the 17 | distribution. 18 | 19 | * Neither the name of Google nor the names of its contributors may 20 | be used to endorse or promote products derived from this software 21 | without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifndef _MSC_VER 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2017 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | 33 | If you redistribute modified sources, we would appreciate that you include in 34 | the file ChangeLog history information documenting your changes. Please read 35 | the FAQ for more information on the distribution of modified source versions. 36 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2017 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | 33 | If you redistribute modified sources, we would appreciate that you include in 34 | the file ChangeLog history information documenting your changes. Please read 35 | the FAQ for more information on the distribution of modified source versions. 36 | -------------------------------------------------------------------------------- /Project_1945_source/src/Islands.c: -------------------------------------------------------------------------------- 1 | #include "Islands.h" 2 | 3 | 4 | void CreateIslands(Scene* scene) { 5 | scene->island1 = CreateIsland("resources/map/island1.png", 50, 57); 6 | scene->island2 = CreateIsland("resources/map/island2.png", 68, 64); 7 | scene->island3 = CreateIsland("resources/map/island3.png", 46, 46); 8 | } 9 | 10 | Island* CreateIsland(char* island_texture_path, int w, int h) { 11 | Island* island = (Island*)malloc(sizeof(Island)); 12 | island->texture = CreateTexture(island_texture_path); 13 | island->rect = (SDL_Rect*)malloc(sizeof(SDL_Rect)); 14 | 15 | Set_Island_Random_SpawnPoint(island->rect); 16 | Set_Island_Random_Size(island->rect); 17 | island->rect->w = w; 18 | island->rect->h = h; 19 | 20 | island->speed = 100; 21 | 22 | return island; 23 | } 24 | 25 | 26 | void Set_Island_Random_SpawnPoint(SDL_Rect* rect) { 27 | rect->x = Get_Random_Number(0, WINDOW_WIDTH); 28 | rect->y = -Get_Random_Number(0, WINDOW_HEIGHT * 4); 29 | } 30 | 31 | void Set_Island_Random_Size(SDL_Rect* rect) { 32 | rect->w = Get_Random_Number(1, 3)* 32; 33 | rect->h = rect->w; 34 | } 35 | 36 | 37 | void Update_Islands(Scene* scene) { 38 | scene->island1->rect->y += (int)(delta_time * scene->island1->speed); 39 | scene->island2->rect->y += (int)(delta_time * scene->island1->speed); 40 | scene->island3->rect->y += (int)(delta_time * scene->island1->speed); 41 | 42 | 43 | if (scene->island1->rect->y > WINDOW_HEIGHT) { 44 | Set_Island_Random_SpawnPoint(scene->island1->rect); 45 | Set_Island_Random_Size(scene->island1->rect); 46 | } 47 | if (scene->island2->rect->y > WINDOW_HEIGHT) { 48 | Set_Island_Random_SpawnPoint(scene->island2->rect); 49 | Set_Island_Random_Size(scene->island2->rect); 50 | } 51 | if (scene->island3->rect->y > WINDOW_HEIGHT) { 52 | Set_Island_Random_SpawnPoint(scene->island3->rect); 53 | Set_Island_Random_Size(scene->island3->rect); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Project_1945_source/include/Actors.h: -------------------------------------------------------------------------------- 1 | #ifndef ACTORS_H_ 2 | #define ACTORS_H_ 3 | #include 4 | #include 5 | 6 | 7 | typedef struct { 8 | SDL_Texture* texture; 9 | SDL_Rect* rect; 10 | SDL_Rect* anim_rect; 11 | int curr_anim_frame; 12 | int anim_frames; 13 | float anim_max_time; 14 | float anim_curr_time; 15 | float speed; 16 | int max_health; 17 | int health; 18 | int collision_damage; 19 | } Actor; 20 | 21 | typedef struct { 22 | SDL_Texture* texture; 23 | SDL_Rect* rect; 24 | float speed; 25 | short isEnabled; 26 | } Perk; 27 | 28 | typedef struct { 29 | Actor* actor; 30 | short isEnable; 31 | } Bullet; 32 | 33 | typedef struct { 34 | Actor* actor; 35 | SDL_Rect* collision_rect; 36 | int lifes; 37 | int max_lifes; 38 | short has_lost_HP; 39 | float curr_time_hitted_anim; 40 | float max_time_hitted_anim; 41 | 42 | int bullets_num; 43 | Bullet** bullets; 44 | SDL_Texture* bullet_texture; 45 | float curr_time_to_shoot; 46 | float max_time_to_wait_to_shoot; 47 | float normal_time_to_wait_to_shoot; 48 | 49 | short explosion_is_ended; 50 | SDL_Texture* explosion_texture; 51 | SDL_Rect* explosion_rect; 52 | int expl_curr_anim_frame; 53 | int expl_anim_frames; 54 | float expl_anim_max_time; 55 | float expl_anim_curr_time; 56 | float curr_blink_time; 57 | float blink_time_rate; 58 | 59 | short bullet_perk; 60 | float curr_bullet_perk_time; 61 | float max_bullet_perk_time; 62 | float bullet_perk_time_to_shoot; 63 | } Player; 64 | 65 | typedef struct { 66 | Actor* actor; 67 | short isDied; 68 | SDL_Rect* explosion_anim_rect; 69 | int expl_curr_anim_frame; 70 | int expl_anim_frames; 71 | float expl_anim_max_time; 72 | float expl_anim_curr_time; 73 | 74 | float curr_time_to_shoot; 75 | float max_time_to_wait_to_shoot; 76 | 77 | short direction; 78 | float curr_time_to_direction; 79 | float max_waitime_to_direction; 80 | } Enemy; 81 | 82 | 83 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_memory.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_memory_h_ 31 | #define SDL_test_memory_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | 40 | /** 41 | * \brief Start tracking SDL memory allocations 42 | * 43 | * \note This should be called before any other SDL functions for complete tracking coverage 44 | */ 45 | int SDLTest_TrackAllocations(void); 46 | 47 | /** 48 | * \brief Print a log of any outstanding allocations 49 | * 50 | * \note This can be called after SDL_Quit() 51 | */ 52 | void SDLTest_LogAllocations(void); 53 | 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* SDL_test_memory_h_ */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /Project_1945_source/src/RenderMgr.c: -------------------------------------------------------------------------------- 1 | #include "RenderMgr.h" 2 | 3 | 4 | void CreateWindow() { 5 | window = SDL_CreateWindow( 6 | "Project 1945 by Tronus", 7 | SDL_WINDOWPOS_CENTERED, 8 | SDL_WINDOWPOS_CENTERED, 9 | WINDOW_WIDTH, WINDOW_HEIGHT, 10 | 0 11 | ); 12 | 13 | if (window == NULL) { 14 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, 15 | "Could not create window: %s", SDL_GetError()); 16 | return; 17 | } 18 | 19 | 20 | // SET ICON 21 | /* Uint32 rmask, gmask, bmask, amask; 22 | rmask = 0x000000ff; 23 | gmask = 0x0000ff00; 24 | bmask = 0x00ff0000; 25 | amask = 0xff000000; 26 | 27 | 28 | SDL_Surface* icon; 29 | SDL_RWops *rwop; 30 | 31 | rwop = SDL_RWFromFile("resources/ui/Icon.ico", "rb"); 32 | Uint32 pixels[32 * 32 * 4 + 1]; 33 | 34 | if (rwop != NULL) { 35 | rwop->read(rwop, pixels, sizeof (pixels), 1); 36 | rwop->close(rwop); 37 | } 38 | icon = SDL_CreateRGBSurfaceFrom(pixels, 32, 32, 32, 32 * 3, rmask, gmask, bmask, amask); */ 39 | 40 | SDL_Surface* icon = IMG_Load("resources/ui/Icon.png"); 41 | 42 | SDL_SetWindowIcon(window, icon); 43 | 44 | SDL_FreeSurface(icon); 45 | //SDL_FreeRW(rwop); 46 | } 47 | 48 | void CreateRenderer() { 49 | renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); 50 | 51 | if (renderer == NULL) { 52 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, 53 | "Could not create renderer: %s", SDL_GetError()); 54 | return; 55 | } 56 | } 57 | 58 | SDL_Texture* CreateTexture(char* filePath) { 59 | //Load on RAM 60 | SDL_Surface* surface = IMG_Load(filePath); 61 | if (surface == NULL) { 62 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not load surface: %s", SDL_GetError()); 63 | return NULL; 64 | } 65 | 66 | //Load on GPU 67 | SDL_Texture* texture = SDL_CreateTextureFromSurface(renderer, surface); 68 | if (texture == NULL) { 69 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not load texture: %s", SDL_GetError()); 70 | return NULL; 71 | } 72 | 73 | //Free RAM 74 | SDL_FreeSurface(surface); 75 | 76 | return texture; 77 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_log.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Wrapper to log in the TEST category 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_log_h_ 37 | #define SDL_test_log_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Prints given message with a timestamp in the TEST category and INFO priority. 47 | * 48 | * \param fmt Message to be logged 49 | */ 50 | void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 51 | 52 | /** 53 | * \brief Prints given message with a timestamp in the TEST category and the ERROR priority. 54 | * 55 | * \param fmt Message to be logged 56 | */ 57 | void SDLTest_LogError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 58 | 59 | /* Ends C function definitions when using C++ */ 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | #include "close_code.h" 64 | 65 | #endif /* SDL_test_log_h_ */ 66 | 67 | /* vi: set ts=4 sw=4 expandtab: */ 68 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-porting.md: -------------------------------------------------------------------------------- 1 | Porting 2 | ======= 3 | 4 | * Porting To A New Platform 5 | 6 | The first thing you have to do when porting to a new platform, is look at 7 | include/SDL_platform.h and create an entry there for your operating system. 8 | The standard format is "__PLATFORM__", where PLATFORM is the name of the OS. 9 | Ideally SDL_platform.h will be able to auto-detect the system it's building 10 | on based on C preprocessor symbols. 11 | 12 | There are two basic ways of building SDL at the moment: 13 | 14 | 1. The "UNIX" way: ./configure; make; make install 15 | 16 | If you have a GNUish system, then you might try this. Edit configure.ac, 17 | take a look at the large section labelled: 18 | 19 | "Set up the configuration based on the host platform!" 20 | 21 | Add a section for your platform, and then re-run autogen.sh and build! 22 | 23 | 2. Using an IDE: 24 | 25 | If you're using an IDE or other non-configure build system, you'll probably 26 | want to create a custom SDL_config.h for your platform. Edit SDL_config.h, 27 | add a section for your platform, and create a custom SDL_config_{platform}.h, 28 | based on SDL_config_minimal.h and SDL_config.h.in 29 | 30 | Add the top level include directory to the header search path, and then add 31 | the following sources to the project: 32 | 33 | src/*.c 34 | src/atomic/*.c 35 | src/audio/*.c 36 | src/cpuinfo/*.c 37 | src/events/*.c 38 | src/file/*.c 39 | src/haptic/*.c 40 | src/joystick/*.c 41 | src/power/*.c 42 | src/render/*.c 43 | src/render/software/*.c 44 | src/stdlib/*.c 45 | src/thread/*.c 46 | src/timer/*.c 47 | src/video/*.c 48 | src/audio/disk/*.c 49 | src/audio/dummy/*.c 50 | src/filesystem/dummy/*.c 51 | src/video/dummy/*.c 52 | src/haptic/dummy/*.c 53 | src/joystick/dummy/*.c 54 | src/main/dummy/*.c 55 | src/thread/generic/*.c 56 | src/timer/dummy/*.c 57 | src/loadso/dummy/*.c 58 | 59 | 60 | Once you have a working library without any drivers, you can go back to each 61 | of the major subsystems and start implementing drivers for your platform. 62 | 63 | If you have any questions, don't hesitate to ask on the SDL mailing list: 64 | http://www.libsdl.org/mailing-list.php 65 | 66 | Enjoy! 67 | Sam Lantinga (slouken@libsdl.org) 68 | 69 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x64/LICENSE.opus.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, 6 | Jean-Marc Valin, Timothy B. Terriberry, 7 | CSIRO, Gregory Maxwell, Mark Borgerding, 8 | Erik de Castro Lopo 9 | 10 | Redistribution and use in source and binary forms, with or without 11 | modification, are permitted provided that the following conditions 12 | are met: 13 | 14 | - Redistributions of source code must retain the above copyright 15 | notice, this list of conditions and the following disclaimer. 16 | 17 | - Redistributions in binary form must reproduce the above copyright 18 | notice, this list of conditions and the following disclaimer in the 19 | documentation and/or other materials provided with the distribution. 20 | 21 | - Neither the name of Internet Society, IETF or IETF Trust, nor the 22 | names of specific contributors, may be used to endorse or promote 23 | products derived from this software without specific prior written 24 | permission. 25 | 26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 30 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 31 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 32 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 33 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 34 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 35 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 36 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | 38 | Opus is subject to the royalty-free patent licenses which are 39 | specified at: 40 | 41 | Xiph.Org Foundation: 42 | https://datatracker.ietf.org/ipr/1524/ 43 | 44 | Microsoft Corporation: 45 | https://datatracker.ietf.org/ipr/1914/ 46 | 47 | Broadcom Corporation: 48 | https://datatracker.ietf.org/ipr/1526/ 49 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/lib/x86/LICENSE.opus.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, 6 | Jean-Marc Valin, Timothy B. Terriberry, 7 | CSIRO, Gregory Maxwell, Mark Borgerding, 8 | Erik de Castro Lopo 9 | 10 | Redistribution and use in source and binary forms, with or without 11 | modification, are permitted provided that the following conditions 12 | are met: 13 | 14 | - Redistributions of source code must retain the above copyright 15 | notice, this list of conditions and the following disclaimer. 16 | 17 | - Redistributions in binary form must reproduce the above copyright 18 | notice, this list of conditions and the following disclaimer in the 19 | documentation and/or other materials provided with the distribution. 20 | 21 | - Neither the name of Internet Society, IETF or IETF Trust, nor the 22 | names of specific contributors, may be used to endorse or promote 23 | products derived from this software without specific prior written 24 | permission. 25 | 26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 30 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 31 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 32 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 33 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 34 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 35 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 36 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | 38 | Opus is subject to the royalty-free patent licenses which are 39 | specified at: 40 | 41 | Xiph.Org Foundation: 42 | https://datatracker.ietf.org/ipr/1524/ 43 | 44 | Microsoft Corporation: 45 | https://datatracker.ietf.org/ipr/1914/ 46 | 47 | Broadcom Corporation: 48 | https://datatracker.ietf.org/ipr/1526/ 49 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef SDL_clipboard_h_ 29 | #define SDL_clipboard_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* SDL_clipboard_h_ */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_h_ 31 | #define SDL_test_h_ 32 | 33 | #include "SDL.h" 34 | #include "SDL_test_assert.h" 35 | #include "SDL_test_common.h" 36 | #include "SDL_test_compare.h" 37 | #include "SDL_test_crc32.h" 38 | #include "SDL_test_font.h" 39 | #include "SDL_test_fuzzer.h" 40 | #include "SDL_test_harness.h" 41 | #include "SDL_test_images.h" 42 | #include "SDL_test_log.h" 43 | #include "SDL_test_md5.h" 44 | #include "SDL_test_memory.h" 45 | #include "SDL_test_random.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /* Global definitions */ 54 | 55 | /* 56 | * Note: Maximum size of SDLTest log message is less than SDL's limit 57 | * to ensure we can fit additional information such as the timestamp. 58 | */ 59 | #define SDLTEST_MAX_LOGMESSAGE_LENGTH 3584 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README.md: -------------------------------------------------------------------------------- 1 | Simple DirectMedia Layer {#mainpage} 2 | ======================== 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | http://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | SDL officially supports Windows, Mac OS X, Linux, iOS, and Android. 18 | Support for other platforms may be found in the source code. 19 | 20 | SDL is written in C, works natively with C++, and there are bindings 21 | available for several other languages, including C# and Python. 22 | 23 | This library is distributed under the zlib license, which can be found 24 | in the file "COPYING.txt". 25 | 26 | The best way to learn how to use SDL is to check out the header files in 27 | the "include" subdirectory and the programs in the "test" subdirectory. 28 | The header files and test programs are well commented and always up to date. 29 | 30 | More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/) 31 | 32 | - [Android](README-android.md) 33 | - [CMake](README-cmake.md) 34 | - [DirectFB](README-directfb.md) 35 | - [DynAPI](README-dynapi.md) 36 | - [Emscripten](README-emscripten.md) 37 | - [Gesture](README-gesture.md) 38 | - [Mercurial](README-hg.md) 39 | - [iOS](README-ios.md) 40 | - [Linux](README-linux.md) 41 | - [OS X](README-macosx.md) 42 | - [Native Client](README-nacl.md) 43 | - [Pandora](README-pandora.md) 44 | - [Supported Platforms](README-platforms.md) 45 | - [Porting information](README-porting.md) 46 | - [PSP](README-psp.md) 47 | - [Raspberry Pi](README-raspberrypi.md) 48 | - [Touch](README-touch.md) 49 | - [WinCE](README-wince.md) 50 | - [Windows](README-windows.md) 51 | - [WinRT](README-winrt.md) 52 | 53 | If you need help with the library, or just want to discuss SDL related 54 | issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php) 55 | 56 | If you want to report bugs or contribute patches, please submit them to 57 | [bugzilla](https://bugzilla.libsdl.org/) 58 | 59 | Enjoy! 60 | 61 | 62 | Sam Lantinga 63 | 64 | -------------------------------------------------------------------------------- /Project_1945_source/include/Game_Actors.h: -------------------------------------------------------------------------------- 1 | #ifndef GAME_ACTORS_H_ 2 | #define GAME_ACTORS_H_ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | 14 | Player* Create_Player(); 15 | void Player_Reset(Player* player); 16 | Enemy* Create_Enemy(SDL_Texture* texture_ptr, Scene* scene); 17 | Enemy* Create_Boss(SDL_Texture* texture_ptr, Scene* scene); 18 | void Enemy_Reset(Enemy* enemy, Scene* scene); 19 | void Boss_Reset(Enemy* enemy); 20 | void Set_Enemy_Direction(Enemy* enemy); 21 | 22 | Bullet* Create_Bullet(SDL_Texture* texture_ptr); 23 | Perk* Create_Perk(SDL_Texture* texture_ptr, Scene* scene); 24 | 25 | 26 | void Set_Enemy_Random_SpawnPoint(SDL_Rect* rect, Scene* Scene); 27 | 28 | void Update_PlayerInputs(Player* player); 29 | void Player_Shoot(Player* player); 30 | void Check_PlayerBounds(SDL_Rect* player_rect); 31 | 32 | void Check_Player_Collisions(Scene* scene, Player* player); 33 | void Check_Player_Bullets_Collisions(Scene* scene, Player* player); 34 | void Check_Enemy_Bullets_Collisions(Scene* scene, Player* player); 35 | void Check_Perks_Collisions(Scene* scene, Player* player); 36 | 37 | 38 | void Player_Lose_HP(Scene* scene, Player* player, int* damage); 39 | void Player_Check_Ishitted(Player* player); 40 | 41 | short Animate_Rect(SDL_Rect* anim_rect, int* max_frames, int* curr_frame, float* time_max, float* time_curr); 42 | short Animate_Rect_Atlas(int offset, SDL_Rect* anim_rect, int* max_frames, int* curr_frame, float* time_max, float* time_curr); 43 | 44 | void Enemy_Tries_To_Shoot(Scene* scene, Enemy* enemy); 45 | 46 | void Update_Boss(Scene* scene); 47 | void Update_Enemy(Scene* scene, Enemy* enemy); 48 | void Update_Player(Player* player, Scene* scene); 49 | void Update_Bullets(Player* player); 50 | void Update_Enemy_Bullets(Scene* scene); 51 | void Update_Perks(Scene* scene); 52 | 53 | void Spawn_Perks(Scene* scene); 54 | 55 | void Draw_Player(Scene* scene, Player* player); 56 | void Draw_Player_Bullets(Player* player); 57 | void Draw_Enemy_Bullets(Scene* scene); 58 | void Draw_Enemy(Scene* scene, Enemy* enemy); 59 | void Draw_Boss(Scene* scene, Enemy* enemy); 60 | void Draw_Boss_Hitted_Explosion(Scene* scene); 61 | void Draw_Perks(Scene* scene); 62 | 63 | 64 | void Player_AddScorePoints(Scene* scene, int points); 65 | 66 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_compare.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_compare.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines comparison functions (i.e. for surfaces). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_compare_h_ 37 | #define SDL_test_compare_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "SDL_test_images.h" 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /** 50 | * \brief Compares a surface and with reference image data for equality 51 | * 52 | * \param surface Surface used in comparison 53 | * \param referenceSurface Test Surface used in comparison 54 | * \param allowable_error Allowable difference (=sum of squared difference for each RGB component) in blending accuracy. 55 | * 56 | * \returns 0 if comparison succeeded, >0 (=number of pixels for which the comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ. 57 | */ 58 | int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error); 59 | 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_compare_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-windows.md: -------------------------------------------------------------------------------- 1 | Windows 2 | ================================================================================ 3 | 4 | ================================================================================ 5 | OpenGL ES 2.x support 6 | ================================================================================ 7 | 8 | SDL has support for OpenGL ES 2.x under Windows via two alternative 9 | implementations. 10 | The most straightforward method consists in running your app in a system with 11 | a graphic card paired with a relatively recent (as of November of 2013) driver 12 | which supports the WGL_EXT_create_context_es2_profile extension. Vendors known 13 | to ship said extension on Windows currently include nVidia and Intel. 14 | 15 | The other method involves using the ANGLE library (https://code.google.com/p/angleproject/) 16 | If an OpenGL ES 2.x context is requested and no WGL_EXT_create_context_es2_profile 17 | extension is found, SDL will try to load the libEGL.dll library provided by 18 | ANGLE. 19 | To obtain the ANGLE binaries, you can either compile from source from 20 | https://chromium.googlesource.com/angle/angle or copy the relevant binaries from 21 | a recent Chrome/Chromium install for Windows. The files you need are: 22 | 23 | * libEGL.dll 24 | * libGLESv2.dll 25 | * d3dcompiler_46.dll (supports Windows Vista or later, better shader compiler) 26 | or... 27 | * d3dcompiler_43.dll (supports Windows XP or later) 28 | 29 | If you compile ANGLE from source, you can configure it so it does not need the 30 | d3dcompiler_* DLL at all (for details on this, see their documentation). 31 | However, by default SDL will try to preload the d3dcompiler_46.dll to 32 | comply with ANGLE's requirements. If you wish SDL to preload d3dcompiler_43.dll (to 33 | support Windows XP) or to skip this step at all, you can use the 34 | SDL_HINT_VIDEO_WIN_D3DCOMPILER hint (see SDL_hints.h for more details). 35 | 36 | Known Bugs: 37 | 38 | * SDL_GL_SetSwapInterval is currently a no op when using ANGLE. It appears 39 | that there's a bug in the library which prevents the window contents from 40 | refreshing if this is set to anything other than the default value. 41 | 42 | Vulkan Surface Support 43 | ============== 44 | 45 | Support for creating Vulkan surfaces is configured on by default. To disable it change the value of `SDL_VIDEO_VULKAN` to 0 in `SDL_config_windows.h`. You must install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/) in order to use Vulkan graphics in your application. 46 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef SDL_gesture_h_ 29 | #define SDL_gesture_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* SDL_gesture_h_ */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_images.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_images.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines some images for tests. 33 | 34 | */ 35 | 36 | #ifndef SDL_test_images_h_ 37 | #define SDL_test_images_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "begin_code.h" 42 | /* Set up for C function definitions, even when using C++ */ 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | /** 48 | *Type for test images. 49 | */ 50 | typedef struct SDLTest_SurfaceImage_s { 51 | int width; 52 | int height; 53 | unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 54 | const char *pixel_data; 55 | } SDLTest_SurfaceImage_t; 56 | 57 | /* Test images */ 58 | SDL_Surface *SDLTest_ImageBlit(void); 59 | SDL_Surface *SDLTest_ImageBlitColor(void); 60 | SDL_Surface *SDLTest_ImageBlitAlpha(void); 61 | SDL_Surface *SDLTest_ImageBlitBlendAdd(void); 62 | SDL_Surface *SDLTest_ImageBlitBlend(void); 63 | SDL_Surface *SDLTest_ImageBlitBlendMod(void); 64 | SDL_Surface *SDLTest_ImageBlitBlendNone(void); 65 | SDL_Surface *SDLTest_ImageBlitBlendAll(void); 66 | SDL_Surface *SDLTest_ImageFace(void); 67 | SDL_Surface *SDLTest_ImagePrimitives(void); 68 | SDL_Surface *SDLTest_ImagePrimitivesBlend(void); 69 | 70 | /* Ends C function definitions when using C++ */ 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | #include "close_code.h" 75 | 76 | #endif /* SDL_test_images_h_ */ 77 | 78 | /* vi: set ts=4 sw=4 expandtab: */ 79 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef SDL_error_h_ 29 | #define SDL_error_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* SDL_error_h_ */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_mixer/README.txt: -------------------------------------------------------------------------------- 1 | 2 | SDL_mixer 2.0 3 | 4 | The latest version of this library is available from: 5 | http://www.libsdl.org/projects/SDL_mixer/ 6 | 7 | Due to popular demand, here is a simple multi-channel audio mixer. 8 | It supports 8 channels of 16 bit stereo audio, plus a single channel 9 | of music. 10 | 11 | See the header file SDL_mixer.h and the examples playwave.c and playmus.c 12 | for documentation on this mixer library. 13 | 14 | The mixer can currently load Microsoft WAVE files and Creative Labs VOC 15 | files as audio samples, it can load FLAC files with libFLAC, it can load 16 | Ogg Vorbis files with Ogg Vorbis or Tremor libraries, it can load MP3 files 17 | using mpg123 or libmad, and it can load MIDI files with Timidity, 18 | FluidSynth, and natively on Windows, Mac OSX, and Linux, and finally it can 19 | load the following file formats via ModPlug or MikMod: .MOD .S3M .IT .XM. 20 | 21 | Tremor decoding is disabled by default; you can enable it by passing 22 | --enable-music-ogg-tremor 23 | to configure, or by defining MUSIC_OGG and OGG_USE_TREMOR. 24 | 25 | libmad decoding is disabled by default; you can enable it by passing 26 | --enable-music-mp3-mad 27 | to configure, or by defining MUSIC_MP3_MAD 28 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 29 | WARNING: The license for libmad is GPL, which means that in order to 30 | use it your application must also be GPL! 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 | The process of mixing MIDI files to wave output is very CPU intensive, 34 | so if playing regular WAVE files sound great, but playing MIDI files 35 | sound choppy, try using 8-bit audio, mono audio, or lower frequencies. 36 | 37 | To play MIDI files using FluidSynth, you'll need to set the SDL_SOUNDFONTS 38 | environment variable to a Sound Font 2 (.sf2) file containing the musical 39 | instruments you want to use for MIDI playback. 40 | (On some Linux distributions you can install the fluid-soundfont-gm package) 41 | 42 | To play MIDI files using Timidity, you'll need to get a complete set of 43 | GUS patches from: 44 | http://www.libsdl.org/projects/mixer/timidity/timidity.tar.gz 45 | and unpack them in /usr/local/lib under UNIX, and C:\ under Win32. 46 | 47 | iOS: 48 | In order to use this library on iOS, you should include the SDL.xcodeproj 49 | and Xcode-iOS/SDL_mixer.xcodeproj in your application, add the SDL/include 50 | and SDL_mixer directories to your "Header Search Paths" setting, then add the 51 | libSDL2.a and libSDL2_mixer.a to your "Link Binary with Libraries" setting. 52 | 53 | This library is under the zlib license, see the file "COPYING.txt" for details. 54 | 55 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_power_h_ 23 | #define SDL_power_h_ 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* SDL_power_h_ */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /Project_1945_source/src/main.c: -------------------------------------------------------------------------------- 1 | #define SDL_MAIN_HANDLED 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | 18 | void UpdateMgr(SplashScreen* splash, Scene* scene, Player* player){ 19 | Update_DeltaTime(); 20 | 21 | Update_Islands(scene); 22 | // Update enemies 23 | for (int i = 0; i < scene->enemies_count; i++) 24 | { 25 | Update_Enemy(scene, scene->enemies[i]); 26 | } 27 | 28 | Update_Player(player, scene); 29 | 30 | // Update Bullets 31 | Update_Bullets(player); 32 | Update_Enemy_Bullets(scene); 33 | 34 | // Update perks 35 | Update_Perks(scene); 36 | 37 | // Update Scene 38 | Scene_Update(splash, scene, player); 39 | } 40 | 41 | void DrawMgr(Scene* scene, Player* player) { 42 | // PRE RENDER 43 | SDL_SetRenderDrawColor(renderer, 0, 0, 55, 255); 44 | SDL_RenderClear(renderer); 45 | 46 | // FINAL RENDER 47 | Scene_Draw(scene, player); 48 | Draw_Player(scene, player); 49 | 50 | SDL_RenderPresent(renderer); 51 | } 52 | 53 | void CollisionsMgr(Scene* scene, Player* player) { 54 | if(scene->boss->isDied == 0){ 55 | Check_Player_Collisions(scene, player); 56 | Check_Player_Bullets_Collisions(scene, player); 57 | Check_Enemy_Bullets_Collisions(scene, player); 58 | Check_Perks_Collisions(scene, player); 59 | } 60 | } 61 | 62 | 63 | int WinMain() { 64 | SDL_Init(SDL_INIT_VIDEO); 65 | CreateWindow(); 66 | CreateRenderer(); 67 | Init_Utility(); 68 | Init_AudioMgr(&audio_mgr); 69 | 70 | 71 | Scene* scene = Create_Scene(); 72 | Player* player = Create_Player(); 73 | Init_FontMgr(scene); 74 | // SPLASH SCREEN 75 | SplashScreen* splash = Create_SplashScreen(); 76 | 77 | 78 | // GAME SCENE GAME LOOP 79 | while(!quit_game) { 80 | if(SplashScreen_GameLoop(splash, scene, player) == 1){ 81 | continue; 82 | } 83 | 84 | // INPUTS 85 | Update_InputEvents(); 86 | if(scene->boss->isDied == 0) 87 | Update_PlayerInputs(player); 88 | 89 | 90 | // UPDATES 91 | UpdateMgr(splash, scene, player); 92 | CollisionsMgr(scene, player); 93 | 94 | // DRAWS 95 | SDL_Delay(11); 96 | DrawMgr(scene, player); 97 | } 98 | 99 | 100 | 101 | Destroy_SplashScreen(splash); 102 | 103 | SDL_DestroyWindow(window); 104 | SDL_Quit(); 105 | return 0; 106 | } 107 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_font.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_font.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_font_h_ 31 | #define SDL_test_font_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | #define FONT_CHARACTER_SIZE 8 42 | 43 | /** 44 | * \brief Draw a string in the currently set font. 45 | * 46 | * \param renderer The renderer to draw on. 47 | * \param x The X coordinate of the upper left corner of the character. 48 | * \param y The Y coordinate of the upper left corner of the character. 49 | * \param c The character to draw. 50 | * 51 | * \returns Returns 0 on success, -1 on failure. 52 | */ 53 | int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c); 54 | 55 | /** 56 | * \brief Draw a string in the currently set font. 57 | * 58 | * \param renderer The renderer to draw on. 59 | * \param x The X coordinate of the upper left corner of the string. 60 | * \param y The Y coordinate of the upper left corner of the string. 61 | * \param s The string to draw. 62 | * 63 | * \returns Returns 0 on success, -1 on failure. 64 | */ 65 | int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s); 66 | 67 | 68 | /** 69 | * \brief Cleanup textures used by font drawing functions. 70 | */ 71 | void SDLTest_CleanupTextDrawing(void); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_test_font_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /Project_1945_source/include/Scene.h: -------------------------------------------------------------------------------- 1 | #ifndef SCENE_H_ 2 | #define SCENE_H_ 3 | #include 4 | #include 5 | #include 6 | 7 | typedef struct Scene Scene; 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | 15 | short quit_game; 16 | 17 | typedef struct { 18 | Sprite* sprite; 19 | float curr_time_waiting; 20 | float max_time_to_wait; 21 | short go_next_scene; 22 | } SplashScreen; 23 | 24 | SplashScreen* Create_SplashScreen(); 25 | void Destroy_SplashScreen(SplashScreen* splash); 26 | 27 | void Update_SplashScreen(SplashScreen* splash, Scene* scene, Player* player); 28 | void Draw_SplashScreen(SplashScreen* splash); 29 | 30 | int SplashScreen_GameLoop(SplashScreen* splash, Scene* scene, Player* player); 31 | 32 | 33 | 34 | struct Scene{ 35 | SDL_Texture* bottom_texture; 36 | SDL_Texture* water_texture; 37 | 38 | SDL_Rect** bg_rects; 39 | int bg_rects_capacity; 40 | SDL_Rect* bottom_ui_rect; 41 | 42 | Island* island1; 43 | Island* island2; 44 | Island* island3; 45 | 46 | int enemies_count; 47 | SDL_Texture* enemy1_texture; 48 | SDL_Texture* enemy_expl_texture; 49 | Enemy** enemies; 50 | 51 | Sprite* life_sprite; 52 | SDL_Rect* hp_bar_rect; 53 | int max_hp_bar_width; 54 | int score; 55 | 56 | SDL_Texture* atlas; 57 | SDL_Rect* game_over_atlas_pos; 58 | SDL_Rect* game_over_rect; 59 | 60 | float curr_time_to_restart; 61 | float max_waittime_to_restart; 62 | 63 | int bullets_num; 64 | Bullet** bullets; 65 | SDL_Rect* bullet_text_rect; 66 | SDL_Texture* bullet1_texture; 67 | 68 | 69 | float curr_time_toSpawn_perk; 70 | float max_time_toSpawn_perk; 71 | 72 | int life_perks_num; 73 | Perk** life_perks; 74 | SDL_Rect* atlas_rect_life_perk; 75 | int bullet_perks_num; 76 | Perk** bullet_perks; 77 | SDL_Rect* atlas_rect_bullet_perk; 78 | 79 | int enemy_points; 80 | int bullet_points; 81 | int life_perk_points; 82 | int bullet_perk_points; 83 | int boss_kill_points; 84 | 85 | short curr_difficulty_distance_mul; 86 | float curr_difficulty_time; 87 | float max_difficulty_time; 88 | 89 | Enemy* boss; 90 | SDL_Rect* boss_hitted_explosion; 91 | int boss_hit_expl_dist_x; 92 | int boss_hit_expl_dist_y; 93 | float boss_coll_dmg_time; 94 | float max_boss_coll_dmg_time; 95 | float curr_timer_boss_advancing; 96 | float max_curr_timer_boss_advancing; 97 | int old_boss_advancing_pos_y; 98 | }; 99 | 100 | 101 | 102 | Scene* Create_Scene(); 103 | void Scene_Init(Scene* scene); 104 | void Scene_Restart(Scene* scene, Player* player); 105 | 106 | void Scene_Update(SplashScreen* splash, Scene* Scene, Player* Player); 107 | 108 | void Scene_Draw(); 109 | void Create_BG(Scene* scene); 110 | 111 | 112 | #endif -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_config_minimal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_minimal_h_ 23 | #define SDL_config_minimal_h_ 24 | #define SDL_config_h_ 25 | 26 | #include "SDL_platform.h" 27 | 28 | /** 29 | * \file SDL_config_minimal.h 30 | * 31 | * This is the minimal configuration that can be used to build SDL. 32 | */ 33 | 34 | #define HAVE_STDARG_H 1 35 | #define HAVE_STDDEF_H 1 36 | 37 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ 38 | #if defined(_MSC_VER) && (_MSC_VER < 1600) 39 | /* Here are some reasonable defaults */ 40 | typedef unsigned int size_t; 41 | typedef signed char int8_t; 42 | typedef unsigned char uint8_t; 43 | typedef signed short int16_t; 44 | typedef unsigned short uint16_t; 45 | typedef signed int int32_t; 46 | typedef unsigned int uint32_t; 47 | typedef signed long long int64_t; 48 | typedef unsigned long long uint64_t; 49 | typedef unsigned long uintptr_t; 50 | #else 51 | #define HAVE_STDINT_H 1 52 | #endif /* Visual Studio 2008 */ 53 | 54 | #ifdef __GNUC__ 55 | #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1 56 | #endif 57 | 58 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ 59 | #define SDL_AUDIO_DRIVER_DUMMY 1 60 | 61 | /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ 62 | #define SDL_JOYSTICK_DISABLED 1 63 | 64 | /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */ 65 | #define SDL_HAPTIC_DISABLED 1 66 | 67 | /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ 68 | #define SDL_LOADSO_DISABLED 1 69 | 70 | /* Enable the stub thread support (src/thread/generic/\*.c) */ 71 | #define SDL_THREADS_DISABLED 1 72 | 73 | /* Enable the stub timer support (src/timer/dummy/\*.c) */ 74 | #define SDL_TIMERS_DISABLED 1 75 | 76 | /* Enable the dummy video driver (src/video/dummy/\*.c) */ 77 | #define SDL_VIDEO_DRIVER_DUMMY 1 78 | 79 | /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */ 80 | #define SDL_FILESYSTEM_DUMMY 1 81 | 82 | #endif /* SDL_config_minimal_h_ */ 83 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_metal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_metal.h 24 | * 25 | * Header file for functions to creating Metal layers and views on SDL windows. 26 | */ 27 | 28 | #ifndef SDL_metal_h_ 29 | #define SDL_metal_h_ 30 | 31 | #include "SDL_video.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS). 41 | * 42 | * \note This can be cast directly to an NSView or UIView. 43 | */ 44 | typedef void *SDL_MetalView; 45 | 46 | /** 47 | * \name Metal support functions 48 | */ 49 | /* @{ */ 50 | 51 | /** 52 | * \brief Create a CAMetalLayer-backed NSView/UIView and attach it to the 53 | * specified window. 54 | * 55 | * On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its 56 | * own. It is up to user code to do that. 57 | * 58 | * The returned handle can be casted directly to a NSView or UIView, and the 59 | * CAMetalLayer can be accessed from the view's 'layer' property. 60 | * 61 | * \code 62 | * SDL_MetalView metalview = SDL_Metal_CreateView(window); 63 | * UIView *uiview = (__bridge UIView *)metalview; 64 | * CAMetalLayer *metallayer = (CAMetalLayer *)uiview.layer; 65 | * // [...] 66 | * SDL_Metal_DestroyView(metalview); 67 | * \endcode 68 | * 69 | * \sa SDL_Metal_DestroyView 70 | */ 71 | extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window); 72 | 73 | /** 74 | * \brief Destroy an existing SDL_MetalView object. 75 | * 76 | * This should be called before SDL_DestroyWindow, if SDL_Metal_CreateView was 77 | * called after SDL_CreateWindow. 78 | * 79 | * \sa SDL_Metal_CreateView 80 | */ 81 | extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view); 82 | 83 | /* @} *//* Metal support functions */ 84 | 85 | /* Ends C function definitions when using C++ */ 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | #include "close_code.h" 90 | 91 | #endif /* SDL_metal_h_ */ 92 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-directfb.md: -------------------------------------------------------------------------------- 1 | DirectFB 2 | ======== 3 | 4 | Supports: 5 | 6 | - Hardware YUV overlays 7 | - OpenGL - software only 8 | - 2D/3D accelerations (depends on directfb driver) 9 | - multiple displays 10 | - windows 11 | 12 | What you need: 13 | 14 | * DirectFB 1.0.1, 1.2.x, 1.3.0 15 | * Kernel-Framebuffer support: required: vesafb, radeonfb .... 16 | * Mesa 7.0.x - optional for OpenGL 17 | 18 | /etc/directfbrc 19 | 20 | This file should contain the following lines to make 21 | your joystick work and avoid crashes: 22 | ------------------------ 23 | disable-module=joystick 24 | disable-module=cle266 25 | disable-module=cyber5k 26 | no-linux-input-grab 27 | ------------------------ 28 | 29 | To disable to use x11 backend when DISPLAY variable is found use 30 | 31 | export SDL_DIRECTFB_X11_CHECK=0 32 | 33 | To disable the use of linux input devices, i.e. multimice/multikeyboard support, 34 | use 35 | 36 | export SDL_DIRECTFB_LINUX_INPUT=0 37 | 38 | To use hardware accelerated YUV-overlays for YUV-textures, use: 39 | 40 | export SDL_DIRECTFB_YUV_DIRECT=1 41 | 42 | This is disabled by default. It will only support one 43 | YUV texture, namely the first. Every other YUV texture will be 44 | rendered in software. 45 | 46 | In addition, you may use (directfb-1.2.x) 47 | 48 | export SDL_DIRECTFB_YUV_UNDERLAY=1 49 | 50 | to make the YUV texture an underlay. This will make the cursor to 51 | be shown. 52 | 53 | Simple Window Manager 54 | ===================== 55 | 56 | The driver has support for a very, very basic window manager you may 57 | want to use when running with "wm=default". Use 58 | 59 | export SDL_DIRECTFB_WM=1 60 | 61 | to enable basic window borders. In order to have the window title rendered, 62 | you need to have the following font installed: 63 | 64 | /usr/share/fonts/truetype/freefont/FreeSans.ttf 65 | 66 | OpenGL Support 67 | ============== 68 | 69 | The following instructions will give you *software* OpenGL. However this 70 | works at least on all directfb supported platforms. 71 | 72 | As of this writing 20100802 you need to pull Mesa from git and do the following: 73 | 74 | ------------------------ 75 | git clone git://anongit.freedesktop.org/git/mesa/mesa 76 | cd mesa 77 | git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a 78 | ------------------------ 79 | 80 | Edit configs/linux-directfb so that the Directories-section looks like 81 | ------------------------ 82 | # Directories 83 | SRC_DIRS = mesa glu 84 | GLU_DIRS = sgi 85 | DRIVER_DIRS = directfb 86 | PROGRAM_DIRS = 87 | ------------------------ 88 | 89 | make linux-directfb 90 | make 91 | 92 | echo Installing - please enter sudo pw. 93 | 94 | sudo make install INSTALL_DIR=/usr/local/dfb_GL 95 | cd src/mesa/drivers/directfb 96 | make 97 | sudo make install INSTALL_DIR=/usr/local/dfb_GL 98 | ------------------------ 99 | 100 | To run the SDL - testprograms: 101 | 102 | export SDL_VIDEODRIVER=directfb 103 | export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib 104 | export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7 105 | 106 | ./testgl 107 | 108 | -------------------------------------------------------------------------------- /Project_1945_source/src/Utility.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | void Init_Utility() { 5 | curr_count = SDL_GetPerformanceCounter(); 6 | last_count = 0; 7 | update_time = 0; 8 | keyboard_state = SDL_GetKeyboardState(NULL); 9 | } 10 | 11 | void Update_DeltaTime() { 12 | last_count = curr_count; 13 | curr_count = SDL_GetPerformanceCounter(); 14 | freq = SDL_GetPerformanceFrequency(); 15 | delta_time = (float)(curr_count - last_count) / (float)freq; 16 | fps = (int)(1.f / delta_time); 17 | update_time += delta_time; 18 | 19 | 20 | if (update_time >= 1.f) { 21 | time_passed += update_time; 22 | sprintf_s(title, sizeof(title), "Project 1945 by Tronus Time: %.2f - FPS: %d", time_passed, fps); 23 | SDL_SetWindowTitle(window, title); 24 | update_time -= 1.f; 25 | } 26 | } 27 | 28 | int Get_Random_Number(int num_min, int num_max){ 29 | return rand() % (num_max + 1 - num_min) + num_min; 30 | } 31 | 32 | 33 | int Get_Best_Score(){ 34 | 35 | FILE *fp; 36 | char str[50]; 37 | int best_score = 0; 38 | char* filename = "resources\\data.txt"; 39 | fp = fopen(filename, "r"); 40 | 41 | if (fp == NULL){ 42 | printf("Could not open file %s", filename); 43 | return 0; 44 | } 45 | 46 | 47 | for(int i=0; i<1; i++) { 48 | fscanf(fp,"%s %d\n", &str, &best_score); 49 | } 50 | fclose(fp); 51 | 52 | 53 | /*while (fgets(str, 50, fp) != NULL) 54 | //printf("%s", str); 55 | fclose(fp);*/ 56 | //int best_score = atoi(str); 57 | 58 | 59 | return best_score; 60 | } 61 | 62 | int Get_Boss_Kills(){ 63 | 64 | FILE *fp; 65 | char str[50]; 66 | int kills = 0; 67 | char* filename = "resources\\data.txt"; 68 | fp = fopen(filename, "r"); 69 | 70 | if (fp == NULL){ 71 | printf("Could not open file %s", filename); 72 | return 0; 73 | } 74 | 75 | 76 | for(int i=0; i<2; i++) { 77 | fscanf(fp,"%s %d\n", &str, &kills); 78 | } 79 | fclose(fp); 80 | 81 | 82 | return kills; 83 | } 84 | 85 | 86 | int Save_Data(Scene* scene){ 87 | short is_new_best_score = 0; 88 | 89 | int old_score = Get_Best_Score(); 90 | if(scene->score > old_score){ 91 | is_new_best_score = 1; 92 | Change_Best_Score_Text(scene); 93 | } 94 | 95 | 96 | if(is_new_best_score == 1 || scene->boss->isDied == 1){ 97 | int kills = scene->boss->isDied + Get_Boss_Kills(); 98 | Change_Boss_Kills(scene, &kills); 99 | 100 | 101 | FILE * fp; 102 | 103 | char* filename = "resources\\data.txt"; 104 | fp = fopen(filename, "w"); 105 | if (fp == NULL){ 106 | printf("Could not open file %s", filename); 107 | return 0; 108 | } 109 | 110 | if(is_new_best_score == 0) 111 | fprintf (fp, "BestScore: %d\nBossKills: %d", old_score, kills); 112 | else 113 | fprintf (fp, "BestScore: %d\nBossKills: %d", scene->score, kills); 114 | 115 | 116 | fclose (fp); 117 | } 118 | 119 | 120 | 121 | return 1; 122 | } -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef SDL_loadso_h_ 42 | #define SDL_loadso_h_ 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_loadso_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x64/LICENSE.jpeg.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | LEGAL ISSUES 6 | ============ 7 | 8 | In plain English: 9 | 10 | 1. We don't promise that this software works. (But if you find any bugs, 11 | please let us know!) 12 | 2. You can use this software for whatever you want. You don't have to pay us. 13 | 3. You may not pretend that you wrote this software. If you use it in a 14 | program, you must acknowledge somewhere in your documentation that 15 | you've used the IJG code. 16 | 17 | In legalese: 18 | 19 | The authors make NO WARRANTY or representation, either express or implied, 20 | with respect to this software, its quality, accuracy, merchantability, or 21 | fitness for a particular purpose. This software is provided "AS IS", and you, 22 | its user, assume the entire risk as to its quality and accuracy. 23 | 24 | This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding. 25 | All Rights Reserved except as specified below. 26 | 27 | Permission is hereby granted to use, copy, modify, and distribute this 28 | software (or portions thereof) for any purpose, without fee, subject to these 29 | conditions: 30 | (1) If any part of the source code for this software is distributed, then this 31 | README file must be included, with this copyright and no-warranty notice 32 | unaltered; and any additions, deletions, or changes to the original files 33 | must be clearly indicated in accompanying documentation. 34 | (2) If only executable code is distributed, then the accompanying 35 | documentation must state that "this software is based in part on the work of 36 | the Independent JPEG Group". 37 | (3) Permission for use of this software is granted only if the user accepts 38 | full responsibility for any undesirable consequences; the authors accept 39 | NO LIABILITY for damages of any kind. 40 | 41 | These conditions apply to any software derived from or based on the IJG code, 42 | not just to the unmodified library. If you use our work, you ought to 43 | acknowledge us. 44 | 45 | Permission is NOT granted for the use of any IJG author's name or company name 46 | in advertising or publicity relating to this software or products derived from 47 | it. This software may be referred to only as "the Independent JPEG Group's 48 | software". 49 | 50 | We specifically permit and encourage the use of this software as the basis of 51 | commercial products, provided that all warranty or liability claims are 52 | assumed by the product vendor. 53 | 54 | 55 | The Unix configuration script "configure" was produced with GNU Autoconf. 56 | It is copyright by the Free Software Foundation but is freely distributable. 57 | The same holds for its supporting scripts (config.guess, config.sub, 58 | ltmain.sh). Another support script, install-sh, is copyright by X Consortium 59 | but is also freely distributable. 60 | 61 | The IJG distribution formerly included code to read and write GIF files. 62 | To avoid entanglement with the Unisys LZW patent (now expired), GIF reading 63 | support has been removed altogether, and the GIF writer has been simplified 64 | to produce "uncompressed GIFs". This technique does not use the LZW 65 | algorithm; the resulting GIF files are larger than usual, but are readable 66 | by all standard GIF decoders. 67 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2_image/lib/x86/LICENSE.jpeg.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | LEGAL ISSUES 6 | ============ 7 | 8 | In plain English: 9 | 10 | 1. We don't promise that this software works. (But if you find any bugs, 11 | please let us know!) 12 | 2. You can use this software for whatever you want. You don't have to pay us. 13 | 3. You may not pretend that you wrote this software. If you use it in a 14 | program, you must acknowledge somewhere in your documentation that 15 | you've used the IJG code. 16 | 17 | In legalese: 18 | 19 | The authors make NO WARRANTY or representation, either express or implied, 20 | with respect to this software, its quality, accuracy, merchantability, or 21 | fitness for a particular purpose. This software is provided "AS IS", and you, 22 | its user, assume the entire risk as to its quality and accuracy. 23 | 24 | This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding. 25 | All Rights Reserved except as specified below. 26 | 27 | Permission is hereby granted to use, copy, modify, and distribute this 28 | software (or portions thereof) for any purpose, without fee, subject to these 29 | conditions: 30 | (1) If any part of the source code for this software is distributed, then this 31 | README file must be included, with this copyright and no-warranty notice 32 | unaltered; and any additions, deletions, or changes to the original files 33 | must be clearly indicated in accompanying documentation. 34 | (2) If only executable code is distributed, then the accompanying 35 | documentation must state that "this software is based in part on the work of 36 | the Independent JPEG Group". 37 | (3) Permission for use of this software is granted only if the user accepts 38 | full responsibility for any undesirable consequences; the authors accept 39 | NO LIABILITY for damages of any kind. 40 | 41 | These conditions apply to any software derived from or based on the IJG code, 42 | not just to the unmodified library. If you use our work, you ought to 43 | acknowledge us. 44 | 45 | Permission is NOT granted for the use of any IJG author's name or company name 46 | in advertising or publicity relating to this software or products derived from 47 | it. This software may be referred to only as "the Independent JPEG Group's 48 | software". 49 | 50 | We specifically permit and encourage the use of this software as the basis of 51 | commercial products, provided that all warranty or liability claims are 52 | assumed by the product vendor. 53 | 54 | 55 | The Unix configuration script "configure" was produced with GNU Autoconf. 56 | It is copyright by the Free Software Foundation but is freely distributable. 57 | The same holds for its supporting scripts (config.guess, config.sub, 58 | ltmain.sh). Another support script, install-sh, is copyright by X Consortium 59 | but is also freely distributable. 60 | 61 | The IJG distribution formerly included code to read and write GIF files. 62 | To avoid entanglement with the Unisys LZW patent (now expired), GIF reading 63 | support has been removed altogether, and the GIF writer has been simplified 64 | to produce "uncompressed GIFs". This technique does not use the LZW 65 | algorithm; the resulting GIF files are larger than usual, but are readable 66 | by all standard GIF decoders. 67 | -------------------------------------------------------------------------------- /Project_1945_source/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.18) 2 | 3 | project(Project_1945_by_Tronus LANGUAGES C) 4 | 5 | #[[ 6 | CMAKE_MODULE_PATH da usare quando cerco librerie di tipo MODULO (ovvero Find*.cmake) 7 | 8 | NOTA: E' piu' corretto settarlo fuori da CMakeLists.txt cosi da rendere l'esecuzione CMAKE 9 | indipendente dal workspace locale. 10 | => Settato nel file settings.json, cosi venga configurato dal plugin CMAKE 11 | ]] 12 | #set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/CMake/") 13 | #list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake/") 14 | 15 | 16 | find_package(SDL2 MODULE REQUIRED) 17 | find_package(SDL2_IMAGE MODULE REQUIRED) 18 | find_package(SDL2TTF MODULE REQUIRED) 19 | find_package(SDL2_MIXER MODULE REQUIRED) 20 | 21 | if(SDL2_FOUND 22 | AND SDL2_IMAGE_FOUND 23 | AND SDL2TTF_FOUND 24 | AND SDL2_MIXER_FOUND 25 | ) 26 | message(${SDL2_INCLUDE_DIR}) 27 | message(${SDL2_LIBRARY}) 28 | message(${SDL2_IMAGE_INCLUDE_DIR}) 29 | message(${SDL2_IMAGE_LIBRARY}) 30 | message(${SDL2TTF_INCLUDE_DIR}) 31 | message(${SDL2TTF_LIBRARY}) 32 | message(${SDL2_MIXER_INCLUDE_DIR}) 33 | message(${SDL2_MIXER_LIBRARY}) 34 | endif() 35 | 36 | 37 | #[[ 38 | get_cmake_property(_variableNames VARIABLES) 39 | list (SORT _variableNames) 40 | foreach (_variableName ${_variableNames}) 41 | message(STATUS "${_variableName}=${${_variableName}}") 42 | endforeach() 43 | ]] 44 | FILE(GLOB MyCSources "src/*.c") 45 | SET(WINDOWS_RESOURCE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/resources/ui/appicon.rc) 46 | 47 | add_executable(Project_1945_by_Tronus WIN32 ${MyCSources} ${WINDOWS_RESOURCE_PATH}) 48 | 49 | # link diretto sulla .lib 50 | target_link_libraries(Project_1945_by_Tronus 51 | ${SDL2_LIBRARY} 52 | ${SDL2_IMAGE_LIBRARY} 53 | ${SDL2TTF_LIBRARY} 54 | ${SDL2_MIXER_LIBRARY} 55 | ) 56 | target_include_directories(Project_1945_by_Tronus 57 | PRIVATE 58 | 59 | ${SDL2_INCLUDE_DIR} 60 | ${SDL2_IMAGE_INCLUDE_DIR} 61 | ${SDL2TTF_INCLUDE_DIR} 62 | ${SDL2_MIXER_INCLUDE_DIR} 63 | include 64 | ) 65 | 66 | #Per Windows: il file .exe ha bisogno della .dll vicino a se. 67 | 68 | #NOTA: Differenziare la copia tra .dll di debug e .dll di release se esiste 69 | if(WIN32) 70 | include(GNUInstallDirs) 71 | set(SDL2_DLL ${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2/lib/x64/SDL2.dll) 72 | file(GLOB SDL2IMAGE_DLLS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2_image/lib/x64/*.dll") 73 | file(GLOB SDL2ITTF_DLLS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2_ttf/lib/x64/*.dll") 74 | file(GLOB SDL2MIXER_DLLS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2_mixer/lib/x64/*.dll") 75 | set(DLL_LIST "${SDL2_DLL}" "${SDL2IMAGE_DLLS}" "${SDL2ITTF_DLLS}" "${SDL2MIXER_DLLS}") 76 | 77 | foreach(EACH_DLL ${DLL_LIST}) 78 | add_custom_command(TARGET Project_1945_by_Tronus POST_BUILD 79 | COMMAND ${CMAKE_COMMAND} -E copy_if_different ${EACH_DLL} $ 80 | ) 81 | endforeach() 82 | 83 | endif(WIN32) 84 | 85 | # Post build: Copy Resources to bin 86 | set(ResourcesPath ${CMAKE_CURRENT_SOURCE_DIR}/resources) 87 | add_custom_command(TARGET Project_1945_by_Tronus POST_BUILD 88 | COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "Copy Resources..." 89 | COMMAND ${CMAKE_COMMAND} -E copy_directory ${ResourcesPath} $/resources 90 | ) -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef SDL_touch_h_ 29 | #define SDL_touch_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef enum 45 | { 46 | SDL_TOUCH_DEVICE_INVALID = -1, 47 | SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */ 48 | SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /* trackpad with absolute device coordinates */ 49 | SDL_TOUCH_DEVICE_INDIRECT_RELATIVE /* trackpad with screen cursor-relative coordinates */ 50 | } SDL_TouchDeviceType; 51 | 52 | typedef struct SDL_Finger 53 | { 54 | SDL_FingerID id; 55 | float x; 56 | float y; 57 | float pressure; 58 | } SDL_Finger; 59 | 60 | /* Used as the device ID for mouse events simulated with touch input */ 61 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 62 | 63 | /* Used as the SDL_TouchID for touch events simulated with mouse input */ 64 | #define SDL_MOUSE_TOUCHID ((Sint64)-1) 65 | 66 | 67 | /* Function prototypes */ 68 | 69 | /** 70 | * \brief Get the number of registered touch devices. 71 | */ 72 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 73 | 74 | /** 75 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 76 | */ 77 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 78 | 79 | /** 80 | * \brief Get the type of the given touch device. 81 | */ 82 | extern DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID); 83 | 84 | /** 85 | * \brief Get the number of active fingers for a given touch device. 86 | */ 87 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 88 | 89 | /** 90 | * \brief Get the finger object of the given touch, with the given index. 91 | */ 92 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 93 | 94 | /* Ends C function definitions when using C++ */ 95 | #ifdef __cplusplus 96 | } 97 | #endif 98 | #include "close_code.h" 99 | 100 | #endif /* SDL_touch_h_ */ 101 | 102 | /* vi: set ts=4 sw=4 expandtab: */ 103 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-cmake.md: -------------------------------------------------------------------------------- 1 | CMake 2 | ================================================================================ 3 | (www.cmake.org) 4 | 5 | SDL's build system was traditionally based on autotools. Over time, this 6 | approach has suffered from several issues across the different supported 7 | platforms. 8 | To solve these problems, a new build system based on CMake is under development. 9 | It works in parallel to the legacy system, so users can experiment with it 10 | without complication. 11 | While still experimental, the build system should be usable on the following 12 | platforms: 13 | 14 | * FreeBSD 15 | * Linux 16 | * VS.NET 2010 17 | * MinGW and Msys 18 | * macOS, iOS, and tvOS, with support for XCode 19 | 20 | 21 | ================================================================================ 22 | Usage 23 | ================================================================================ 24 | 25 | Assuming the source for SDL is located at ~/sdl 26 | 27 | cd ~ 28 | mkdir build 29 | cd build 30 | cmake ../sdl 31 | 32 | This will build the static and dynamic versions of SDL in the ~/build directory. 33 | 34 | 35 | ================================================================================ 36 | Usage, iOS/tvOS 37 | ================================================================================ 38 | 39 | CMake 3.14+ natively includes support for iOS and tvOS. SDL binaries may be built 40 | using Xcode or Make, possibly among other build-systems. 41 | 42 | When using a recent version of CMake (3.14+), it should be possible to: 43 | 44 | - build SDL for iOS, both static and dynamic 45 | - build SDL test apps (as iOS/tvOS .app bundles) 46 | - generate a working SDL_config.h for iOS (using SDL_config.h.cmake as a basis) 47 | 48 | To use, set the following CMake variables when running CMake's configuration stage: 49 | 50 | - `CMAKE_SYSTEM_NAME=` (either `iOS` or `tvOS`) 51 | - `CMAKE_OSX_SYSROOT=` (examples: `iphoneos`, `iphonesimulator`, `iphoneos12.4`, `/full/path/to/iPhoneOS.sdk`, 52 | `appletvos`, `appletvsimulator`, `appletvos12.4`, `/full/path/to/AppleTVOS.sdk`, etc.) 53 | - `CMAKE_OSX_ARCHITECTURES=` (example: "arm64;armv7s;x86_64") 54 | 55 | 56 | ### Examples (for iOS/tvOS): 57 | 58 | - for iOS-Simulator, using the latest, installed SDK: 59 | 60 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 61 | 62 | - for iOS-Device, using the latest, installed SDK, 64-bit only 63 | 64 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES=arm64` 65 | 66 | - for iOS-Device, using the latest, installed SDK, mixed 32/64 bit 67 | 68 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES="arm64;armv7s"` 69 | 70 | - for iOS-Device, using a specific SDK revision (iOS 12.4, in this example): 71 | 72 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos12.4 -DCMAKE_OSX_ARCHITECTURES=arm64` 73 | 74 | - for iOS-Simulator, using the latest, installed SDK, and building SDL test apps (as .app bundles): 75 | 76 | `cmake ~/sdl -DSDL_TEST=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 77 | 78 | - for tvOS-Simulator, using the latest, installed SDK: 79 | 80 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvsimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 81 | 82 | - for tvOS-Device, using the latest, installed SDK: 83 | 84 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvos -DCMAKE_OSX_ARCHITECTURES=arm64` 85 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef SDL_bits_h_ 29 | #define SDL_bits_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | #if defined(__WATCOMC__) && defined(__386__) 51 | extern _inline int _SDL_clz_watcom (Uint32); 52 | #pragma aux _SDL_clz_watcom = \ 53 | "bsr eax, eax" \ 54 | "xor eax, 31" \ 55 | parm [eax] nomemory \ 56 | value [eax] \ 57 | modify exact [eax] nomemory; 58 | #endif 59 | 60 | SDL_FORCE_INLINE int 61 | SDL_MostSignificantBitIndex32(Uint32 x) 62 | { 63 | #if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 64 | /* Count Leading Zeroes builtin in GCC. 65 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 66 | */ 67 | if (x == 0) { 68 | return -1; 69 | } 70 | return 31 - __builtin_clz(x); 71 | #elif defined(__WATCOMC__) && defined(__386__) 72 | if (x == 0) { 73 | return -1; 74 | } 75 | return 31 - _SDL_clz_watcom(x); 76 | #else 77 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 78 | * , released in the public domain. 79 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 80 | */ 81 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 82 | const int S[] = {1, 2, 4, 8, 16}; 83 | 84 | int msbIndex = 0; 85 | int i; 86 | 87 | if (x == 0) { 88 | return -1; 89 | } 90 | 91 | for (i = 4; i >= 0; i--) 92 | { 93 | if (x & b[i]) 94 | { 95 | x >>= S[i]; 96 | msbIndex |= S[i]; 97 | } 98 | } 99 | 100 | return msbIndex; 101 | #endif 102 | } 103 | 104 | SDL_FORCE_INLINE SDL_bool 105 | SDL_HasExactlyOneBitSet32(Uint32 x) 106 | { 107 | if (x && !(x & (x - 1))) { 108 | return SDL_TRUE; 109 | } 110 | return SDL_FALSE; 111 | } 112 | 113 | /* Ends C function definitions when using C++ */ 114 | #ifdef __cplusplus 115 | } 116 | #endif 117 | #include "close_code.h" 118 | 119 | #endif /* SDL_bits_h_ */ 120 | 121 | /* vi: set ts=4 sw=4 expandtab: */ 122 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_random.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_random.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | A "32-bit Multiply with carry random number generator. Very fast. 33 | Includes a list of recommended multipliers. 34 | 35 | multiply-with-carry generator: x(n) = a*x(n-1) + carry mod 2^32. 36 | period: (a*2^31)-1 37 | 38 | */ 39 | 40 | #ifndef SDL_test_random_h_ 41 | #define SDL_test_random_h_ 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /* --- Definitions */ 50 | 51 | /* 52 | * Macros that return a random number in a specific format. 53 | */ 54 | #define SDLTest_RandomInt(c) ((int)SDLTest_Random(c)) 55 | 56 | /* 57 | * Context structure for the random number generator state. 58 | */ 59 | typedef struct { 60 | unsigned int a; 61 | unsigned int x; 62 | unsigned int c; 63 | unsigned int ah; 64 | unsigned int al; 65 | } SDLTest_RandomContext; 66 | 67 | 68 | /* --- Function prototypes */ 69 | 70 | /** 71 | * \brief Initialize random number generator with two integers. 72 | * 73 | * Note: The random sequence of numbers returned by ...Random() is the 74 | * same for the same two integers and has a period of 2^31. 75 | * 76 | * \param rndContext pointer to context structure 77 | * \param xi integer that defines the random sequence 78 | * \param ci integer that defines the random sequence 79 | * 80 | */ 81 | void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi, 82 | unsigned int ci); 83 | 84 | /** 85 | * \brief Initialize random number generator based on current system time. 86 | * 87 | * \param rndContext pointer to context structure 88 | * 89 | */ 90 | void SDLTest_RandomInitTime(SDLTest_RandomContext *rndContext); 91 | 92 | 93 | /** 94 | * \brief Initialize random number generator based on current system time. 95 | * 96 | * Note: ...RandomInit() or ...RandomInitTime() must have been called 97 | * before using this function. 98 | * 99 | * \param rndContext pointer to context structure 100 | * 101 | * \returns A random number (32bit unsigned integer) 102 | * 103 | */ 104 | unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_test_random_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_config_wiz.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_wiz_h_ 23 | #define SDL_config_wiz_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #define SDL_BYTEORDER 1234 32 | 33 | #define HAVE_ALLOCA_H 1 34 | #define HAVE_SYS_TYPES_H 1 35 | #define HAVE_STDIO_H 1 36 | #define STDC_HEADERS 1 37 | #define HAVE_STDLIB_H 1 38 | #define HAVE_STDARG_H 1 39 | #define HAVE_MALLOC_H 1 40 | #define HAVE_MEMORY_H 1 41 | #define HAVE_STRING_H 1 42 | #define HAVE_STRINGS_H 1 43 | #define HAVE_INTTYPES_H 1 44 | #define HAVE_STDINT_H 1 45 | #define HAVE_CTYPE_H 1 46 | #define HAVE_MATH_H 1 47 | #define HAVE_ICONV_H 1 48 | #define HAVE_SIGNAL_H 1 49 | #define HAVE_MALLOC 1 50 | #define HAVE_CALLOC 1 51 | #define HAVE_REALLOC 1 52 | #define HAVE_FREE 1 53 | #define HAVE_ALLOCA 1 54 | #define HAVE_GETENV 1 55 | #define HAVE_SETENV 1 56 | #define HAVE_PUTENV 1 57 | #define HAVE_UNSETENV 1 58 | #define HAVE_QSORT 1 59 | #define HAVE_ABS 1 60 | #define HAVE_BCOPY 1 61 | #define HAVE_MEMSET 1 62 | #define HAVE_MEMCPY 1 63 | #define HAVE_MEMMOVE 1 64 | #define HAVE_STRLEN 1 65 | #define HAVE_STRDUP 1 66 | #define HAVE_STRCHR 1 67 | #define HAVE_STRRCHR 1 68 | #define HAVE_STRSTR 1 69 | #define HAVE_STRTOL 1 70 | #define HAVE_STRTOUL 1 71 | #define HAVE_STRTOLL 1 72 | #define HAVE_STRTOULL 1 73 | #define HAVE_ATOI 1 74 | #define HAVE_ATOF 1 75 | #define HAVE_STRCMP 1 76 | #define HAVE_STRNCMP 1 77 | #define HAVE_STRCASECMP 1 78 | #define HAVE_STRNCASECMP 1 79 | #define HAVE_VSSCANF 1 80 | #define HAVE_VSNPRINTF 1 81 | #define HAVE_M_PI 1 82 | #define HAVE_CEIL 1 83 | #define HAVE_COPYSIGN 1 84 | #define HAVE_COS 1 85 | #define HAVE_COSF 1 86 | #define HAVE_FABS 1 87 | #define HAVE_FLOOR 1 88 | #define HAVE_LOG 1 89 | #define HAVE_SCALBN 1 90 | #define HAVE_SIN 1 91 | #define HAVE_SINF 1 92 | #define HAVE_SQRT 1 93 | #define HAVE_SQRTF 1 94 | #define HAVE_TAN 1 95 | #define HAVE_TANF 1 96 | #define HAVE_SIGACTION 1 97 | #define HAVE_SETJMP 1 98 | #define HAVE_NANOSLEEP 1 99 | #define HAVE_POW 1 100 | 101 | #define SDL_AUDIO_DRIVER_DUMMY 1 102 | #define SDL_AUDIO_DRIVER_OSS 1 103 | 104 | #define SDL_INPUT_LINUXEV 1 105 | #define SDL_INPUT_TSLIB 1 106 | #define SDL_JOYSTICK_LINUX 1 107 | #define SDL_HAPTIC_LINUX 1 108 | 109 | #define SDL_LOADSO_DLOPEN 1 110 | 111 | #define SDL_THREAD_PTHREAD 1 112 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 113 | 114 | #define SDL_TIMER_UNIX 1 115 | 116 | #define SDL_VIDEO_DRIVER_DUMMY 1 117 | #define SDL_VIDEO_DRIVER_PANDORA 1 118 | #define SDL_VIDEO_RENDER_OGL_ES 1 119 | #define SDL_VIDEO_OPENGL_ES 1 120 | 121 | #endif /* SDL_config_wiz_h_ */ 122 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_assert.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_assert.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Assert API for test code and test cases 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_assert_h_ 37 | #define SDL_test_assert_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Fails the assert. 47 | */ 48 | #define ASSERT_FAIL 0 49 | 50 | /** 51 | * \brief Passes the assert. 52 | */ 53 | #define ASSERT_PASS 1 54 | 55 | /** 56 | * \brief Assert that logs and break execution flow on failures. 57 | * 58 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 59 | * \param assertDescription Message to log with the assert describing it. 60 | */ 61 | void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 62 | 63 | /** 64 | * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters. 65 | * 66 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 67 | * \param assertDescription Message to log with the assert describing it. 68 | * 69 | * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired. 70 | */ 71 | int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 72 | 73 | /** 74 | * \brief Explicitly pass without checking an assertion condition. Updates assertion counter. 75 | * 76 | * \param assertDescription Message to log with the assert describing it. 77 | */ 78 | void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1); 79 | 80 | /** 81 | * \brief Resets the assert summary counters to zero. 82 | */ 83 | void SDLTest_ResetAssertSummary(void); 84 | 85 | /** 86 | * \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR. 87 | */ 88 | void SDLTest_LogAssertSummary(void); 89 | 90 | 91 | /** 92 | * \brief Converts the current assert summary state to a test result. 93 | * 94 | * \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT 95 | */ 96 | int SDLTest_AssertSummaryToTestResult(void); 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | #include "close_code.h" 102 | 103 | #endif /* SDL_test_assert_h_ */ 104 | 105 | /* vi: set ts=4 sw=4 expandtab: */ 106 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_config_pandora.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_pandora_h_ 23 | #define SDL_config_pandora_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #ifdef __LP64__ 32 | #define SIZEOF_VOIDP 8 33 | #else 34 | #define SIZEOF_VOIDP 4 35 | #endif 36 | 37 | #define SDL_BYTEORDER 1234 38 | 39 | #define HAVE_ALLOCA_H 1 40 | #define HAVE_SYS_TYPES_H 1 41 | #define HAVE_STDIO_H 1 42 | #define STDC_HEADERS 1 43 | #define HAVE_STDLIB_H 1 44 | #define HAVE_STDARG_H 1 45 | #define HAVE_MALLOC_H 1 46 | #define HAVE_MEMORY_H 1 47 | #define HAVE_STRING_H 1 48 | #define HAVE_STRINGS_H 1 49 | #define HAVE_INTTYPES_H 1 50 | #define HAVE_STDINT_H 1 51 | #define HAVE_CTYPE_H 1 52 | #define HAVE_MATH_H 1 53 | #define HAVE_ICONV_H 1 54 | #define HAVE_SIGNAL_H 1 55 | #define HAVE_MALLOC 1 56 | #define HAVE_CALLOC 1 57 | #define HAVE_REALLOC 1 58 | #define HAVE_FREE 1 59 | #define HAVE_ALLOCA 1 60 | #define HAVE_GETENV 1 61 | #define HAVE_SETENV 1 62 | #define HAVE_PUTENV 1 63 | #define HAVE_UNSETENV 1 64 | #define HAVE_QSORT 1 65 | #define HAVE_ABS 1 66 | #define HAVE_BCOPY 1 67 | #define HAVE_MEMSET 1 68 | #define HAVE_MEMCPY 1 69 | #define HAVE_MEMMOVE 1 70 | #define HAVE_STRLEN 1 71 | #define HAVE_STRDUP 1 72 | #define HAVE_STRCHR 1 73 | #define HAVE_STRRCHR 1 74 | #define HAVE_STRSTR 1 75 | #define HAVE_STRTOL 1 76 | #define HAVE_STRTOUL 1 77 | #define HAVE_STRTOLL 1 78 | #define HAVE_STRTOULL 1 79 | #define HAVE_ATOI 1 80 | #define HAVE_ATOF 1 81 | #define HAVE_STRCMP 1 82 | #define HAVE_STRNCMP 1 83 | #define HAVE_STRCASECMP 1 84 | #define HAVE_STRNCASECMP 1 85 | #define HAVE_VSSCANF 1 86 | #define HAVE_VSNPRINTF 1 87 | #define HAVE_M_PI 1 88 | #define HAVE_CEIL 1 89 | #define HAVE_COPYSIGN 1 90 | #define HAVE_COS 1 91 | #define HAVE_COSF 1 92 | #define HAVE_FABS 1 93 | #define HAVE_FLOOR 1 94 | #define HAVE_LOG 1 95 | #define HAVE_SCALBN 1 96 | #define HAVE_SIN 1 97 | #define HAVE_SINF 1 98 | #define HAVE_SQRT 1 99 | #define HAVE_SQRTF 1 100 | #define HAVE_TAN 1 101 | #define HAVE_TANF 1 102 | #define HAVE_SIGACTION 1 103 | #define HAVE_SETJMP 1 104 | #define HAVE_NANOSLEEP 1 105 | 106 | #define SDL_AUDIO_DRIVER_DUMMY 1 107 | #define SDL_AUDIO_DRIVER_OSS 1 108 | 109 | #define SDL_INPUT_LINUXEV 1 110 | #define SDL_INPUT_TSLIB 1 111 | #define SDL_JOYSTICK_LINUX 1 112 | #define SDL_HAPTIC_LINUX 1 113 | 114 | #define SDL_LOADSO_DLOPEN 1 115 | 116 | #define SDL_THREAD_PTHREAD 1 117 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 118 | 119 | #define SDL_TIMER_UNIX 1 120 | #define SDL_FILESYSTEM_UNIX 1 121 | 122 | #define SDL_VIDEO_DRIVER_DUMMY 1 123 | #define SDL_VIDEO_DRIVER_X11 1 124 | #define SDL_VIDEO_DRIVER_PANDORA 1 125 | #define SDL_VIDEO_RENDER_OGL_ES 1 126 | #define SDL_VIDEO_OPENGL_ES 1 127 | 128 | #endif /* SDL_config_pandora_h_ */ 129 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_test_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_crc32.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Implements CRC32 calculations (default output is Perl String::CRC32 compatible). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_crc32_h_ 37 | #define SDL_test_crc32_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | 46 | /* ------------ Definitions --------- */ 47 | 48 | /* Definition shared by all CRC routines */ 49 | 50 | #ifndef CrcUint32 51 | #define CrcUint32 unsigned int 52 | #endif 53 | #ifndef CrcUint8 54 | #define CrcUint8 unsigned char 55 | #endif 56 | 57 | #ifdef ORIGINAL_METHOD 58 | #define CRC32_POLY 0x04c11db7 /* AUTODIN II, Ethernet, & FDDI */ 59 | #else 60 | #define CRC32_POLY 0xEDB88320 /* Perl String::CRC32 compatible */ 61 | #endif 62 | 63 | /** 64 | * Data structure for CRC32 (checksum) computation 65 | */ 66 | typedef struct { 67 | CrcUint32 crc32_table[256]; /* CRC table */ 68 | } SDLTest_Crc32Context; 69 | 70 | /* ---------- Function Prototypes ------------- */ 71 | 72 | /** 73 | * \brief Initialize the CRC context 74 | * 75 | * Note: The function initializes the crc table required for all crc calculations. 76 | * 77 | * \param crcContext pointer to context variable 78 | * 79 | * \returns 0 for OK, -1 on error 80 | * 81 | */ 82 | int SDLTest_Crc32Init(SDLTest_Crc32Context * crcContext); 83 | 84 | 85 | /** 86 | * \brief calculate a crc32 from a data block 87 | * 88 | * \param crcContext pointer to context variable 89 | * \param inBuf input buffer to checksum 90 | * \param inLen length of input buffer 91 | * \param crc32 pointer to Uint32 to store the final CRC into 92 | * 93 | * \returns 0 for OK, -1 on error 94 | * 95 | */ 96 | int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 97 | 98 | /* Same routine broken down into three steps */ 99 | int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 100 | int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 101 | int SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 102 | 103 | 104 | /** 105 | * \brief clean up CRC context 106 | * 107 | * \param crcContext pointer to context variable 108 | * 109 | * \returns 0 for OK, -1 on error 110 | * 111 | */ 112 | 113 | int SDLTest_Crc32Done(SDLTest_Crc32Context * crcContext); 114 | 115 | 116 | /* Ends C function definitions when using C++ */ 117 | #ifdef __cplusplus 118 | } 119 | #endif 120 | #include "close_code.h" 121 | 122 | #endif /* SDL_test_crc32_h_ */ 123 | 124 | /* vi: set ts=4 sw=4 expandtab: */ 125 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/include/SDL_timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_timer_h_ 23 | #define SDL_timer_h_ 24 | 25 | /** 26 | * \file SDL_timer.h 27 | * 28 | * Header for the SDL time management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** 41 | * \brief Get the number of milliseconds since the SDL library initialization. 42 | * 43 | * \note This value wraps if the program runs for more than ~49 days. 44 | */ 45 | extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); 46 | 47 | /** 48 | * \brief Compare SDL ticks values, and return true if A has passed B 49 | * 50 | * e.g. if you want to wait 100 ms, you could do this: 51 | * Uint32 timeout = SDL_GetTicks() + 100; 52 | * while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) { 53 | * ... do work until timeout has elapsed 54 | * } 55 | */ 56 | #define SDL_TICKS_PASSED(A, B) ((Sint32)((B) - (A)) <= 0) 57 | 58 | /** 59 | * \brief Get the current value of the high resolution counter 60 | */ 61 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void); 62 | 63 | /** 64 | * \brief Get the count per second of the high resolution counter 65 | */ 66 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void); 67 | 68 | /** 69 | * \brief Wait a specified number of milliseconds before returning. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); 72 | 73 | /** 74 | * Function prototype for the timer callback function. 75 | * 76 | * The callback function is passed the current timer interval and returns 77 | * the next timer interval. If the returned value is the same as the one 78 | * passed in, the periodic alarm continues, otherwise a new alarm is 79 | * scheduled. If the callback returns 0, the periodic alarm is cancelled. 80 | */ 81 | typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param); 82 | 83 | /** 84 | * Definition of the timer ID type. 85 | */ 86 | typedef int SDL_TimerID; 87 | 88 | /** 89 | * \brief Add a new timer to the pool of timers already running. 90 | * 91 | * \return A timer ID, or 0 when an error occurs. 92 | */ 93 | extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, 94 | SDL_TimerCallback callback, 95 | void *param); 96 | 97 | /** 98 | * \brief Remove a timer knowing its ID. 99 | * 100 | * \return A boolean value indicating success or failure. 101 | * 102 | * \warning It is not safe to remove a timer multiple times. 103 | */ 104 | extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_timer_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-linux.md: -------------------------------------------------------------------------------- 1 | Linux 2 | ================================================================================ 3 | 4 | By default SDL will only link against glibc, the rest of the features will be 5 | enabled dynamically at runtime depending on the available features on the target 6 | system. So, for example if you built SDL with Xinerama support and the target 7 | system does not have the Xinerama libraries installed, it will be disabled 8 | at runtime, and you won't get a missing library error, at least with the 9 | default configuration parameters. 10 | 11 | 12 | ================================================================================ 13 | Build Dependencies 14 | ================================================================================ 15 | 16 | Ubuntu 13.04, all available features enabled: 17 | 18 | sudo apt-get install build-essential mercurial make cmake autoconf automake \ 19 | libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \ 20 | libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \ 21 | libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \ 22 | libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \ 23 | fcitx-libs-dev libsamplerate0-dev libsndio-dev 24 | 25 | Ubuntu 16.04+ can also add "libwayland-dev libxkbcommon-dev wayland-protocols" 26 | to that command line for Wayland support. 27 | 28 | NOTES: 29 | - This includes all the audio targets except arts, because Ubuntu pulled the 30 | artsc0-dev package, but in theory SDL still supports it. 31 | - libsamplerate0-dev lets SDL optionally link to libresamplerate at runtime 32 | for higher-quality audio resampling. SDL will work without it if the library 33 | is missing, so it's safe to build in support even if the end user doesn't 34 | have this library installed. 35 | - DirectFB isn't included because the configure script (currently) fails to find 36 | it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the 37 | configure script to include DirectFB support. Send patches. :) 38 | 39 | 40 | ================================================================================ 41 | Joystick does not work 42 | ================================================================================ 43 | 44 | If you compiled or are using a version of SDL with udev support (and you should!) 45 | there's a few issues that may cause SDL to fail to detect your joystick. To 46 | debug this, start by installing the evtest utility. On Ubuntu/Debian: 47 | 48 | sudo apt-get install evtest 49 | 50 | Then run: 51 | 52 | sudo evtest 53 | 54 | You'll hopefully see your joystick listed along with a name like "/dev/input/eventXX" 55 | Now run: 56 | 57 | cat /dev/input/event/XX 58 | 59 | If you get a permission error, you need to set a udev rule to change the mode of 60 | your device (see below) 61 | 62 | Also, try: 63 | 64 | sudo udevadm info --query=all --name=input/eventXX 65 | 66 | If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it, 67 | you need to set up an udev rule to force this variable. 68 | 69 | A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks 70 | like: 71 | 72 | SUBSYSTEM=="input", ATTRS{idProduct}=="0763", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1" 73 | SUBSYSTEM=="input", ATTRS{idProduct}=="0764", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1" 74 | 75 | You can set up similar rules for your device by changing the values listed in 76 | idProduct and idVendor. To obtain these values, try: 77 | 78 | sudo udevadm info -a --name=input/eventXX | grep idVendor 79 | sudo udevadm info -a --name=input/eventXX | grep idProduct 80 | 81 | If multiple values come up for each of these, the one you want is the first one of each. 82 | 83 | On other systems which ship with an older udev (such as CentOS), you may need 84 | to set up a rule such as: 85 | 86 | SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ID_INPUT_JOYSTICK}="1" 87 | 88 | -------------------------------------------------------------------------------- /Project_1945_source/cmake/sdl2/docs/README-gesture.md: -------------------------------------------------------------------------------- 1 | Dollar Gestures 2 | =========================================================================== 3 | SDL provides an implementation of the $1 gesture recognition system. This allows for recording, saving, loading, and performing single stroke gestures. 4 | 5 | Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. 6 | 7 | Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID. 8 | 9 | Recording: 10 | ---------- 11 | To begin recording on a touch device call: 12 | SDL_RecordGesture(SDL_TouchID touchId), where touchId is the id of the touch device you wish to record on, or -1 to record on all connected devices. 13 | 14 | Recording terminates as soon as a finger comes up. Recording is acknowledged by an SDL_DOLLARRECORD event. 15 | A SDL_DOLLARRECORD event is a dgesture with the following fields: 16 | 17 | * event.dgesture.touchId - the Id of the touch used to record the gesture. 18 | * event.dgesture.gestureId - the unique id of the recorded gesture. 19 | 20 | 21 | Performing: 22 | ----------- 23 | As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields: 24 | 25 | * event.dgesture.touchId - the Id of the touch which performed the gesture. 26 | * event.dgesture.gestureId - the unique id of the closest gesture to the performed stroke. 27 | * event.dgesture.error - the difference between the gesture template and the actual performed gesture. Lower error is a better match. 28 | * event.dgesture.numFingers - the number of fingers used to draw the stroke. 29 | 30 | Most programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed). 31 | 32 | 33 | 34 | Saving: 35 | ------- 36 | To save a template, call SDL_SaveDollarTemplate(gestureId, dst) where gestureId is the id of the gesture you want to save, and dst is an SDL_RWops pointer to the file where the gesture will be stored. 37 | 38 | To save all currently loaded templates, call SDL_SaveAllDollarTemplates(dst) where dst is an SDL_RWops pointer to the file where the gesture will be stored. 39 | 40 | Both functions return the number of gestures successfully saved. 41 | 42 | 43 | Loading: 44 | -------- 45 | To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 46 | 47 | SDL_LoadDollarTemplates returns the number of templates successfully loaded. 48 | 49 | 50 | 51 | =========================================================================== 52 | Multi Gestures 53 | =========================================================================== 54 | SDL provides simple support for pinch/rotate/swipe gestures. 55 | Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields: 56 | 57 | * event.mgesture.touchId - the Id of the touch on which the gesture was performed. 58 | * event.mgesture.x - the normalized x coordinate of the gesture. (0..1) 59 | * event.mgesture.y - the normalized y coordinate of the gesture. (0..1) 60 | * event.mgesture.dTheta - the amount that the fingers rotated during this motion. 61 | * event.mgesture.dDist - the amount that the fingers pinched during this motion. 62 | * event.mgesture.numFingers - the number of fingers used in the gesture. 63 | 64 | 65 | =========================================================================== 66 | Notes 67 | =========================================================================== 68 | For a complete example see test/testgesture.c 69 | 70 | Please direct questions/comments to: 71 | jim.tla+sdl_touch@gmail.com 72 | --------------------------------------------------------------------------------