more work on asset registry and importing process
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user