summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/blendreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/blendreader.h')
-rw-r--r--src/osd/modules/render/bgfx/blendreader.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/blendreader.h b/src/osd/modules/render/bgfx/blendreader.h
new file mode 100644
index 00000000000..dac233aba92
--- /dev/null
+++ b/src/osd/modules/render/bgfx/blendreader.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#ifndef __DRAWBGFX_BLEND_READER__
+#define __DRAWBGFX_BLEND_READER__
+
+#include <bgfx/bgfx.h>
+
+#include "statereader.h"
+
+using namespace rapidjson;
+
+class blend_reader : public state_reader {
+public:
+ static uint64_t read_from_value(const Value& value);
+
+private:
+ static const int EQUATION_COUNT = 7;
+ static const string_to_enum EQUATION_NAMES[EQUATION_COUNT];
+ static const int FUNCTION_COUNT = 16;
+ static const string_to_enum FUNCTION_NAMES[FUNCTION_COUNT];
+};
+
+#endif // __DRAWBGFX_BLEND_READER__ \ No newline at end of file