|
SleakEngine 0.1.0
C++23 multi-backend game engine
|
#include <ResourceManager.hpp>
Static Public Member Functions | |
| static BufferBase * | CreateBuffer (BufferType Type, uint32_t Size, void *Data) |
| Creates a buffer via the currently registered backend factory. | |
| static Sleak::Texture * | CreateCubemapTexture (const std::array< std::string, 6 > &FacePaths) |
| Loads a cubemap from six face image paths via the currently registered backend factory. | |
| static Sleak::Texture * | CreateCubemapTextureFromPanorama (const std::string &PanoramaPath) |
| Loads a cubemap from a single equirectangular panorama via the currently registered backend factory. | |
| static Shader * | CreateShader (const std::string &ShaderPath) |
| Compiles a shader via the currently registered backend factory. | |
| static Sleak::Texture * | CreateTexture (const std::string &TexturePath) |
| Loads a texture via the currently registered backend factory. | |
| static Sleak::Texture * | CreateTextureFromMemory (const void *data, uint32_t width, uint32_t height, TextureFormat format, uint32_t maxMipLevels=0) |
| Creates a texture from raw pixel data via the currently registered backend factory. | |
| template<typename T> | |
| static void | RegisterCreateBuffer (T *instance, BufferBase *(T::*method)(BufferType, uint32_t, void *)) |
| template<typename T> | |
| static void | RegisterCreateCubemapTexture (T *instance, Texture *(T::*method)(const std::array< std::string, 6 > &)) |
| template<typename T> | |
| static void | RegisterCreateCubemapTextureFromPanorama (T *instance, Texture *(T::*method)(const std::string &)) |
| template<typename T> | |
| static void | RegisterCreateShader (T *instance, Shader *(T::*method)(const std::string &)) |
| template<typename T> | |
| static void | RegisterCreateTexture (T *instance, Texture *(T::*method)(const std::string &)) |
| static void | RegisterCreateTextureFromMemory (std::function< Texture *(const void *, uint32_t, uint32_t, TextureFormat, uint32_t)> func) |
Backend-agnostic factory: routes buffer/shader/texture creation to whichever backend registered its creation functions at startup.
Definition at line 35 of file ResourceManager.hpp.
|
static |
Creates a buffer via the currently registered backend factory.
Definition at line 9 of file ResourceManager.cpp.
|
static |
Loads a cubemap from six face image paths via the currently registered backend factory.
Definition at line 83 of file ResourceManager.cpp.
|
static |
Loads a cubemap from a single equirectangular panorama via the currently registered backend factory.
Definition at line 102 of file ResourceManager.cpp.
|
static |
Compiles a shader via the currently registered backend factory.
Definition at line 27 of file ResourceManager.cpp.
|
static |
Loads a texture via the currently registered backend factory.
Definition at line 45 of file ResourceManager.cpp.
|
static |
Creates a texture from raw pixel data via the currently registered backend factory.
Definition at line 64 of file ResourceManager.cpp.
|
inlinestatic |
Definition at line 39 of file ResourceManager.hpp.
|
inlinestatic |
Definition at line 74 of file ResourceManager.hpp.
|
inlinestatic |
Definition at line 83 of file ResourceManager.hpp.
|
inlinestatic |
Definition at line 48 of file ResourceManager.hpp.
|
inlinestatic |
Definition at line 57 of file ResourceManager.hpp.
|
inlinestatic |
Definition at line 65 of file ResourceManager.hpp.