Threading for renderer, textures, entities, game state

This commit is contained in:
2026-03-11 09:01:10 +01:00
parent 755e14ad62
commit d748ca63a0
12 changed files with 218 additions and 30 deletions

25
include/object/entity.hpp Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <string>
#include <utils.hpp>
namespace Game::Renderer {
class Texture;
}
namespace Game::Object {
class Entity {
public:
Entity(std::string& name, Game::Renderer::Texture* tex) : mName(name), mTex(tex) {}
// I will define the copy and move constructors later - just deleted for now
DISABLE_COPY_AND_MOVE(Entity);
~Entity();
void start();
void update();
protected:
std::string mName;
Game::Renderer::Texture* mTex;
private:
};
}