Clean up header includes.

master
Zed A. Shaw 1 month ago
parent 1d3a76e5ee
commit 75ffb49a53
  1. 10
      gui.cpp
  2. 6
      gui.hpp
  3. 9
      raycaster.cpp
  4. 10
      raycaster.hpp

@ -1,16 +1,10 @@
#include "gui.hpp" #include "gui.hpp"
#include "raycaster.hpp"
#include <iostream> #include <iostream>
#include <chrono> #include <chrono>
#include <numeric> #include <numeric>
#include <functional> #include <functional>
#include "constants.hpp"
#include "stats.hpp"
#include "levelmanager.hpp"
#include "components.hpp" #include "components.hpp"
#include "camera.hpp"
#include <numbers> #include <numbers>
#include "fsm.hpp"
using namespace components; using namespace components;
@ -21,10 +15,10 @@ namespace gui {
$text{$font}, $text{$font},
$rayview($window, $textures, RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT) $rayview($window, $textures, RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT)
{ {
$text.setFillColor({255,255,255});
$text.setPosition({10,10});
$window.setVerticalSyncEnabled(VSYNC); $window.setVerticalSyncEnabled(VSYNC);
$window.setFramerateLimit(FRAME_LIMIT); $window.setFramerateLimit(FRAME_LIMIT);
$text.setFillColor({255,255,255});
$text.setPosition({10,10});
$textures.load_tiles(); $textures.load_tiles();
$textures.load_sprites(); $textures.load_sprites();
$rayview.init_shaders(); $rayview.init_shaders();

@ -1,15 +1,9 @@
#pragma once #pragma once
#include "raycaster.hpp" #include "raycaster.hpp"
#include <iostream>
#include <chrono>
#include <numeric>
#include <functional>
#include "constants.hpp" #include "constants.hpp"
#include "stats.hpp" #include "stats.hpp"
#include "levelmanager.hpp" #include "levelmanager.hpp"
#include "components.hpp"
#include "camera.hpp" #include "camera.hpp"
#include <numbers>
#include "fsm.hpp" #include "fsm.hpp"
namespace gui { namespace gui {

@ -1,7 +1,12 @@
#include "raycaster.hpp" #include "raycaster.hpp"
#include "texture.hpp" #include "dbc.hpp"
#include "matrix.hpp"
#include <algorithm> #include <algorithm>
#include "constants.hpp" #include <cmath>
#include <cstdlib>
#include <fmt/core.h>
#include <memory>
#include <numbers>
using namespace fmt; using namespace fmt;
using std::make_unique; using std::make_unique;

@ -1,19 +1,11 @@
#pragma once #pragma once
#include <fmt/core.h>
#include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp>
#include <numbers>
#include <algorithm>
#include <cmath>
#include "matrix.hpp"
#include <cstdlib>
#include <array>
#include "dbc.hpp"
#include <memory>
#include "texture.hpp" #include "texture.hpp"
#include <SFML/System/Clock.hpp> #include <SFML/System/Clock.hpp>
#include "animator.hpp" #include "animator.hpp"
#include "spatialmap.hpp" #include "spatialmap.hpp"
#include "levelmanager.hpp"
using matrix::Matrix; using matrix::Matrix;
using RGBA = uint32_t; using RGBA = uint32_t;

Loading…
Cancel
Save