summaryrefslogtreecommitdiffstats
path: root/src/Gal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gal.hpp')
-rw-r--r--src/Gal.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Gal.hpp b/src/Gal.hpp
index 76db560..fe99dc7 100644
--- a/src/Gal.hpp
+++ b/src/Gal.hpp
@@ -86,6 +86,11 @@ namespace Gal {
TriangleFan,
};
+ enum class Blending {
+ Opaque,
+ Additive,
+ };
+
struct VertexAttribute {
std::string name;
Type type;
@@ -186,6 +191,8 @@ namespace Gal {
virtual void SetPrimitive(Primitive primitive) = 0;
+ virtual void SetBlending(Blending blendingMode) = 0;
+
virtual std::shared_ptr<BufferBinding> BindVertexBuffer(std::vector<VertexAttribute> &&bufferLayout) = 0;
virtual std::shared_ptr<BufferBinding> BindIndexBuffer() = 0;