Changeset e8ebc76 in opengl-game
- Timestamp:
- Aug 29, 2019, 8:22:40 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- eba8c0c
- Parents:
- 850e84c
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r850e84c re8ebc76 1 spacegame 1 2 vulkangame 2 3 newgame -
makefile
r850e84c re8ebc76 56 56 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) 57 57 58 spacegame: space-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp58 spacegame: main.cpp space-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp 59 59 $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS) 60 60 -
space-game.cpp
r850e84c re8ebc76 1 int main(int argc, char* argv[]) { 1 #include "space-game.hpp" 2 2 3 #ifdef NDEBUG 4 cout << "DEBUGGING IS OFF" << endl; 5 #else 6 cout << "DEBUGGING IS ON" << endl; 7 #endif 8 9 cout << "Starting Vulkan game..." << endl; 10 11 VulkanGame game; 12 13 try { 14 game.run(); 15 } catch (const exception& e) { 16 cerr << e.what() << endl; 17 return EXIT_FAILURE; 18 } 19 20 cout << "Finished running the game" << endl; 21 22 return EXIT_SUCCESS; 3 void SpaceGame::run() { 23 4 }
Note:
See TracChangeset
for help on using the changeset viewer.