Move app-wide defines into their own header
This commit is contained in:
		@ -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
									
								
							
							
						
						
									
										4
									
								
								include/defines.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
constexpr int SCREEN_WIDTH = 480;
 | 
			
		||||
constexpr int SCREEN_HEIGHT = 320;
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
#include "AMI.h"
 | 
			
		||||
 | 
			
		||||
#include "App.h"
 | 
			
		||||
#include "defines.h"
 | 
			
		||||
#include "util.h"
 | 
			
		||||
 | 
			
		||||
AMI::AMI(SDL_Renderer* renderer)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user