continued with asset loader
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user