From 0a2cc52f7fae2a91861d3957b02475d6c27c1fb0 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Thu, 16 Sep 2021 19:11:58 -0400 Subject: [PATCH] Add main loop --- src/board.cpp | 5 +++-- src/main.cpp | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/board.cpp b/src/board.cpp index d64c970..7c19d0a 100644 --- a/src/board.cpp +++ b/src/board.cpp @@ -233,7 +233,7 @@ SDL_Renderer* board::getRenderer(){ // Constructors /////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// -board::board(const bool init = true){ +board::board(const bool init){ _window = nullptr; _renderer = nullptr; @@ -316,8 +316,9 @@ int board::init(){ // This is where most of the logic lives void board::start(){ + for(;;){ - + } } diff --git a/src/main.cpp b/src/main.cpp index b05b4fa..55cb3a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,6 +13,8 @@ int main(int argc, char** argv){ dashboard::board _board; + _board.start(); + return 0; }