5#ifndef SMK_BLENDMODE_HPP
6#define SMK_BLENDMODE_HPP
8#include <smk/OpenGL.hpp>
72 GLenum equation_rgb = GL_FUNC_ADD;
73 GLenum equation_alpha = GL_FUNC_ADD;
76 GLenum src_rgb = GL_SRC_ALPHA;
77 GLenum dst_rgb = GL_ONE_MINUS_SRC_ALPHA;
78 GLenum src_alpha = GL_ONE;
79 GLenum dst_alpha = GL_ONE;
static const BlendMode Add
destination += source.
static const BlendMode Subtract
destination -= source.
static const BlendMode Multiply
destination *= source
static const BlendMode Replace
destination = source.
static const BlendMode Alpha
destination = source * source.a + destination * (1 - souce.a)
static const BlendMode Invert
destination = 1 - destination