summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/opengl/CombinerGL.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GfxDevice/opengl/CombinerGL.h')
-rw-r--r--Runtime/GfxDevice/opengl/CombinerGL.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/opengl/CombinerGL.h b/Runtime/GfxDevice/opengl/CombinerGL.h
new file mode 100644
index 0000000..fcc1307
--- /dev/null
+++ b/Runtime/GfxDevice/opengl/CombinerGL.h
@@ -0,0 +1,18 @@
+#pragma once
+
+namespace ShaderLab {
+ struct TextureBinding;
+ class PropertySheet;
+}
+
+
+struct TextureCombinersGL
+{
+ static bool IsCombineModeSupported( unsigned int combiner );
+ static TextureCombinersGL* Create( int count, const ShaderLab::TextureBinding* texEnvs, const ShaderLab::PropertySheet* props );
+
+ int count;
+ const ShaderLab::TextureBinding* texEnvs;
+};
+
+void ApplyCombinerGL( unsigned int& currentCombColor, unsigned int& currentCombAlpha, unsigned int combcolor, unsigned int combalpha );