Clean up header includes.

This commit is contained in:
Zed A. Shaw 2025-02-04 13:26:22 -05:00
parent 1d3a76e5ee
commit 75ffb49a53
4 changed files with 10 additions and 25 deletions

10
gui.cpp
View file

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

View file

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

View file

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

View file

@ -1,19 +1,11 @@
#pragma once
#include <fmt/core.h>
#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 <SFML/System/Clock.hpp>
#include "animator.hpp"
#include "spatialmap.hpp"
#include "levelmanager.hpp"
using matrix::Matrix;
using RGBA = uint32_t;