Changeset e8ebc76 in opengl-game


Ignore:
Timestamp:
Aug 29, 2019, 8:22:40 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
eba8c0c
Parents:
850e84c
Message:

Create main.cpp to hold the initial startup code and (eventually) the CrashLogger wrapper and create a SpaceGame class to hold the rendering and game logic

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r850e84c re8ebc76  
     1spacegame
    12vulkangame
    23newgame
  • makefile

    r850e84c re8ebc76  
    5656        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS)
    5757
    58 spacegame: space-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp
     58spacegame: main.cpp space-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp
    5959        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS)
    6060
  • space-game.cpp

    r850e84c re8ebc76  
    1 int main(int argc, char* argv[]) {
     1#include "space-game.hpp"
    22
    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;
     3void SpaceGame::run() {
    234}
Note: See TracChangeset for help on using the changeset viewer.