continued with asset loader

This commit is contained in:
2026-05-18 18:10:06 -04:00
parent e02e92db10
commit 6a0e0d0685
28 changed files with 183 additions and 73575 deletions

View File

@@ -5,16 +5,15 @@
#ifndef B_ENGINE_TEXTUREMANAGER_H
#define B_ENGINE_TEXTUREMANAGER_H
#include <filesystem>
#include <memory>
#include <unordered_map>
#include "ResourceHandle.h"
#include "Texture.h"
#include "uuid.h"
class TextureManager {
public:
static std::unordered_map<uuids::uuid, std::unique_ptr<Texture>> textures;
static std::unordered_map<ResourceHandle, std::unique_ptr<Texture>> textures;
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);