Textures and sprites are now managed by a single module in textures.hpp, and even though it is a _single_ location to access all sprites it is NOT a singleton. Those are illegal.
This commit is contained in:
parent
f3e1413022
commit
0260e3d345
15 changed files with 142 additions and 170 deletions
|
@ -5,7 +5,7 @@
|
|||
#include "animator.hpp"
|
||||
#include "spatialmap.hpp"
|
||||
#include "levelmanager.hpp"
|
||||
#include "texture.hpp"
|
||||
#include "textures.hpp"
|
||||
|
||||
using matrix::Matrix;
|
||||
using RGBA = uint32_t;
|
||||
|
@ -37,7 +37,7 @@ struct Raycaster {
|
|||
int $screen_pos_y = RAY_VIEW_Y;
|
||||
GameLevel $level;
|
||||
Matrix $map;
|
||||
std::unordered_map<DinkyECS::Entity, SpriteTexture> $sprites;
|
||||
std::unordered_map<DinkyECS::Entity, textures::SpriteTexture> $sprites;
|
||||
std::vector<double> $zbuffer; // width
|
||||
Animator $anim;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue