5#ifndef SMK_RENDER_STATE_HPP
6#define SMK_RENDER_STATE_HPP
9#include <smk/BlendMode.hpp>
10#include <smk/Shader.hpp>
11#include <smk/Texture.hpp>
12#include <smk/VertexArray.hpp>
21 glm::mat4
view = glm::mat4(1.f);
22 glm::vec4
color = glm::vec4(0.f);
A shader program is a set of shader (for instance vertex shader + pixel shader) defining the renderin...
An array of smk::Vertex moved to the GPU memory. This represent a set of triangles to be drawn by the...
static const BlendMode Alpha
destination = source * source.a + destination * (1 - souce.a)
Contain all the data needed to draw.
glm::mat4 view
The "view" transformation.
glm::vec4 color
The masking color.
Texture texture
The texture 0 bound.
BlendMode blend_mode
The OpenGL BlendMode.
VertexArray vertex_array
The shape to to be drawn.
ShaderProgram shader_program
The shader used.