diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/texturemanager.h')
-rw-r--r-- | src/osd/modules/render/bgfx/texturemanager.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/osd/modules/render/bgfx/texturemanager.h b/src/osd/modules/render/bgfx/texturemanager.h index 69608c03616..1b757d20630 100644 --- a/src/osd/modules/render/bgfx/texturemanager.h +++ b/src/osd/modules/render/bgfx/texturemanager.h @@ -19,6 +19,7 @@ #include <bgfx/bgfx.h> +class bgfx_texture_handle_provider; class bgfx_texture; class texture_manager { @@ -27,15 +28,16 @@ public: ~texture_manager(); bgfx_texture* create_texture(std::string name, bgfx::TextureFormat::Enum format, uint32_t width, uint32_t height, void* data = nullptr, uint32_t flags = BGFX_TEXTURE_U_CLAMP | BGFX_TEXTURE_V_CLAMP); - void add_texture(std::string name, bgfx_texture* texture); + void add_provider(std::string name, bgfx_texture_handle_provider* texture); // Getters - bgfx_texture* texture(std::string name); + bgfx::TextureHandle handle(std::string name); + bgfx_texture_handle_provider* provider(std::string name); private: bgfx_texture* create_texture(std::string name); - std::map<std::string, bgfx_texture*> m_textures; + std::map<std::string, bgfx_texture_handle_provider*> m_textures; }; #endif // __DRAWBGFX_TEXTURE_MANAGER__ |