summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/target.h')
-rw-r--r--src/osd/modules/render/bgfx/target.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/target.h b/src/osd/modules/render/bgfx/target.h
new file mode 100644
index 00000000000..099288cbec1
--- /dev/null
+++ b/src/osd/modules/render/bgfx/target.h
@@ -0,0 +1,30 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// target.h - Render target abstraction for BGFX layer
+//
+//============================================================
+
+#pragma once
+
+#ifndef __DRAWBGFX_TARGET__
+#define __DRAWBGFX_TARGET__
+
+#include "texture.h"
+
+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);
+ virtual ~bgfx_target();
+
+ // Getters
+ bgfx::FrameBufferHandle target() const { return m_target; }
+
+private:
+ bgfx::FrameBufferHandle m_target;
+};
+
+#endif // __DRAWBGFX_TARGET__ \ No newline at end of file