This commit is contained in:
CocoSimone
2022-05-15 21:35:27 +02:00
parent 429541ab0c
commit 072f5bb847
7 changed files with 90 additions and 25 deletions

View File

@@ -6,5 +6,5 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(SDL2 REQUIRED)
add_library(frontend Frontend.cpp Frontend.hpp)
target_include_directories(frontend PUBLIC .)
target_include_directories(frontend PUBLIC . ../../core)
target_link_libraries(frontend PUBLIC SDL2)

View File

@@ -1,5 +1,6 @@
#pragma once
#include <SDL2/SDL.h>
#include <gb/Core.hpp>
namespace natsukashii::frontend {
struct App {
@@ -11,5 +12,6 @@ private:
SDL_Renderer *renderer = nullptr;
Uint32 id;
bool quit = false;
core::Core gb;
};
}