Переместил менеджер моделей в UwURenderEngine, так как у него нет прямой зависимости от ядра и у ядра нет зависимости от него

This commit is contained in:
Jiga228
2025-10-27 23:15:02 +07:00
parent 740c80e8c7
commit 1ab74b8128
10 changed files with 8102 additions and 16 deletions
@@ -0,0 +1,35 @@
#pragma once
#include <unordered_map>
#include <string>
#include <atomic>
class ModelManager
{
public:
class StaticModel
{
//DATA
};
struct owner_counter
{
std::atomic_ullong counter;
StaticModel* model;
owner_counter() = default;
owner_counter(const owner_counter& other);
};
private:
std::unordered_map<unsigned int, owner_counter> models;
static unsigned int FNV1aHash (const char *buf);
public:
~ModelManager();
StaticModel* LoadModel(const std::string& name);
void FreeModel(const std::string& name);
};