more work on asset registry and importing process

This commit is contained in:
2026-05-17 19:12:27 -05:00
parent b3b7688f76
commit e02e92db10
13 changed files with 221 additions and 148 deletions

View File

@@ -5,17 +5,19 @@
#ifndef B_ENGINE_TEXTUREMANAGER_H
#define B_ENGINE_TEXTUREMANAGER_H
#include <filesystem>
#include <memory>
#include <unordered_map>
#include "Texture.h"
#include "uuid.h"
class TextureManager {
public:
static std::unordered_map<std::string, std::shared_ptr<Texture>> textures;
static std::unordered_map<uuids::uuid, std::unique_ptr<Texture>> textures;
static std::shared_ptr<Texture> load_from_file(std::string_view filePath);
static std::shared_ptr<Texture> load_from_data(unsigned char* data, int width, int height, int channels);
static std::unique_ptr<Texture> load_from_file(std::string_view filePath);
static std::unique_ptr<Texture> load_from_data(unsigned char* data, int width, int height, int channels);
};
#endif //B_ENGINE_TEXTUREMANAGER_H