|
| 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.