summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/texturehandleprovider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/texturehandleprovider.h')
-rw-r--r--src/osd/modules/render/bgfx/texturehandleprovider.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/texturehandleprovider.h b/src/osd/modules/render/bgfx/texturehandleprovider.h
new file mode 100644
index 00000000000..e309bea8d59
--- /dev/null
+++ b/src/osd/modules/render/bgfx/texturehandleprovider.h
@@ -0,0 +1,28 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// texturehandleprovider.h
+//
+//============================================================
+
+#pragma once
+
+#ifndef __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__
+#define __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__
+
+#include <bgfx/bgfx.h>
+
+class bgfx_texture_handle_provider
+{
+public:
+ virtual ~bgfx_texture_handle_provider() { }
+
+ // Getters
+ virtual bgfx::TextureHandle texture() const = 0;
+ virtual bool is_target() const = 0;
+ virtual uint16_t width() const = 0;
+ virtual uint16_t height() const = 0;
+};
+
+#endif // __DRAWBGFX_TEXTURE_HANDLE_PROVIDER__