From 7e33582e9c5f3c471e4746896ec7f6b76110362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Thu, 14 May 2020 18:56:40 +0200 Subject: [PATCH] fixing compilation on windows and removing useless stufff --- sources/PPU/Background.cpp | 2 +- sources/PPU/Background.hpp | 19 +++++++++++-------- sources/PPU/PPU.cpp | 1 + 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/sources/PPU/Background.cpp b/sources/PPU/Background.cpp index b4afa83..3b461c9 100644 --- a/sources/PPU/Background.cpp +++ b/sources/PPU/Background.cpp @@ -4,7 +4,7 @@ #include "Background.hpp" -namespace PPU +namespace ComSquare::PPU { /*void PPU::renderBackground(int bgNumber, Vector2 characterSize, int bpp, bool priority) { diff --git a/sources/PPU/Background.hpp b/sources/PPU/Background.hpp index bee5559..33a6e4b 100644 --- a/sources/PPU/Background.hpp +++ b/sources/PPU/Background.hpp @@ -9,14 +9,17 @@ #include #include "../Models/Vector2.hpp" -class Background { - int width; - int height; - int bpp; - bool directColor; - bool highRes; - std::array, 1024> buffer; -}; +namespace ComSquare::PPU +{ + class Background { + int width; + int height; + int bpp; + bool directColor; + bool highRes; + std::array, 1024> buffer; + }; +} #endif //COMSQUARE_BACKGROUND_HPP diff --git a/sources/PPU/PPU.cpp b/sources/PPU/PPU.cpp index c0a5661..15a6771 100644 --- a/sources/PPU/PPU.cpp +++ b/sources/PPU/PPU.cpp @@ -10,6 +10,7 @@ #include "../Exceptions/InvalidAddress.hpp" #include "../Ram/Ram.hpp" #include "../Models/Vector2.hpp" +#include namespace ComSquare::PPU {