smk::RenderState Struct Reference

#include <RenderState.hpp>

Contain all the data needed to draw. More...

Description

Contain all the data needed to draw.

Definition at line 17 of file RenderState.hpp.

Public Attributes

ShaderProgram shader_program
 The shader used. More...
 
Texture texture
 The texture 0 bound. More...
 
VertexArray vertex_array
 The shape to to be drawn. More...
 
glm::mat4 view = glm::mat4(1.f)
 The "view" transformation. More...
 
glm::vec4 color = glm::vec4(0.f)
 The masking color. More...
 
BlendMode blend_mode = BlendMode::Alpha
 The OpenGL BlendMode. More...
 

Member Data Documentation

◆ blend_mode

BlendMode smk::RenderState::blend_mode = BlendMode::Alpha

The OpenGL BlendMode.

Definition at line 23 of file RenderState.hpp.

◆ color

glm::vec4 smk::RenderState::color = glm::vec4(0.f)

The masking color.

Definition at line 22 of file RenderState.hpp.

◆ shader_program

ShaderProgram smk::RenderState::shader_program

The shader used.

Definition at line 18 of file RenderState.hpp.

◆ texture

Texture smk::RenderState::texture

The texture 0 bound.

Definition at line 19 of file RenderState.hpp.

◆ vertex_array

VertexArray smk::RenderState::vertex_array

The shape to to be drawn.

Definition at line 20 of file RenderState.hpp.

◆ view

glm::mat4 smk::RenderState::view = glm::mat4(1.f)

The "view" transformation.

Definition at line 21 of file RenderState.hpp.


The documentation for this struct was generated from the following file: