diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/target.h')
-rw-r--r-- | src/osd/modules/render/bgfx/target.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/osd/modules/render/bgfx/target.h b/src/osd/modules/render/bgfx/target.h index 19bf429e606..919881a7f8f 100644 --- a/src/osd/modules/render/bgfx/target.h +++ b/src/osd/modules/render/bgfx/target.h @@ -13,19 +13,30 @@ #include "texture.h" +enum +{ + TARGET_STYLE_GUEST = 0, + TARGET_STYLE_NATIVE, + TARGET_STYLE_CUSTOM +}; + class bgfx_target : public bgfx_texture { public: - bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uint32_t width, uint32_t height, bool filter = false); - bgfx_target(std::string name, void *handle, uint32_t width, uint32_t height); + bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uint32_t width, uint32_t height, bool filter = false, uint32_t style = TARGET_STYLE_CUSTOM); + bgfx_target(std::string name, uint32_t width, uint32_t height, uint32_t style, void *handle); virtual ~bgfx_target(); // Getters bgfx::FrameBufferHandle target() const { return m_target; } + uint32_t style() const { return m_style; } + bool filter() const { return m_filter; } virtual bool is_target() const override { return true; } private: - bgfx::FrameBufferHandle m_target; + bgfx::FrameBufferHandle m_target; + uint32_t m_style; + bool m_filter; }; #endif // __DRAWBGFX_TARGET__ |