Move app-wide defines into their own header

This commit is contained in:
Jasper Blanckenburg 2022-05-20 02:45:33 +02:00
parent 4822eba62c
commit 6d8ada3f18
3 changed files with 6 additions and 4 deletions

View File

@ -1,14 +1,12 @@
#pragma once
#include "AMI.h"
#include "defines.h"
#include <SDL2/SDL.h>
#include <memory>
constexpr int SCREEN_WIDTH = 480;
constexpr int SCREEN_HEIGHT = 320;
enum class AppView { AMI, DRIVER, TESTING };
class SDLManager {

4
include/defines.h Normal file
View File

@ -0,0 +1,4 @@
#pragma once
constexpr int SCREEN_WIDTH = 480;
constexpr int SCREEN_HEIGHT = 320;

View File

@ -1,6 +1,6 @@
#include "AMI.h"
#include "App.h"
#include "defines.h"
#include "util.h"
AMI::AMI(SDL_Renderer* renderer)