20#include "../object/object.h"
21#include "../variant/types.h"
The Blend class inherits from the State class, describing the blending operation during rendering tra...
Definition state.h:43
Function dstFunc
Definition state.h:77
Function srcFunc
Definition state.h:76
bool enabled
This member allows you to enable/diable blending.
Definition state.h:75
Function
The factors in this enumeration specify how the source and destination color values are combined duri...
Definition state.h:47
@ ONE_MINUS_CONSTANT_ALPHA
@ ONE_MINUS_CONSTANT_COLOR
Equation
This enumeration defines different operations used in the blend equation. These operations determine ...
Definition state.h:67
Blend(bool enabled=false, Blend::Function srcFunc=Blend::Function::SRC_ALPHA, Blend::Function dstFunc=Blend::Function::ONE_MINUS_SRC_ALPHA, Blend::Equation equation=Blend::Equation::FUNC_ADD)
Equation equation
Definition state.h:78
The ColorMask class represents the color channel writing during rendering.
Definition state.h:88
bool green
Similar to red.
Definition state.h:91
bool alpha
Similar to red.
Definition state.h:93
bool red
This flag determines whether the red color channel is written to the framebuffer.
Definition state.h:90
ColorMask(bool red=true, bool green=true, bool blue=true, bool alpha=true)
bool blue
Similar to red.
Definition state.h:92
The Culling class inherits from the base class State, describing the culling operation during renderi...
Definition state.h:103
Mode
The enumeration defines the type of the face we want to cull.
Definition state.h:107
Mode mode
Definition state.h:121
Face face
Definition state.h:120
Culling(bool enabled=false, Culling::Face face=Culling::Face::CCW, Culling::Mode mode=Culling::Mode::BACK)
Face
The enumeration defines the ordering (counter-clockwise and clockwise) of the front-faces or the back...
Definition state.h:114
bool enabled
Definition state.h:119
The Depth class inherits from the base class State, describing how the depth test is operated during ...
Definition state.h:130
Depth(bool enabled=false, Depth::Function func=Depth::Function::LESS, bool writeMask=true)
Function
This enumeration defines different comparison operators used for the depth test.
Definition state.h:135
Function func
Definition state.h:147
bool writeMask
Definition state.h:148
bool enabled
This member allows you to enable/diable depth test.
Definition state.h:146
The Line class inherits from the base class State, defining width of Line.
Definition state.h:157
float width
Definition state.h:159
The Point class inherits from the base class State, defining size and other properties of Point.
Definition state.h:166
bool programmable
Definition state.h:169
Point(float size=1.0f, bool programmable=false)
float size
Definition state.h:168
The PolygonOffset class inherits from the base class State, defining the polygon offset.
Definition state.h:193
PolygonOffset(bool enabled=false, float factor=0.0f, float units=0.0f)
float units
Definition state.h:197
bool enabled
Definition state.h:195
float factor
Definition state.h:196
The Polygon class inherits from the base class State, defining mode of Polygon.
Definition state.h:177
Polygon(Mode mode=Polygon::Mode::FILL)
Mode
Definition state.h:180
Mode mode
Definition state.h:186
The Scissor class inherits from the base class State, defining a scissor test that discards fragments...
Definition state.h:206
Scissor(bool enabled=false, int x=0, int y=0, int width=0, int height=0)
int height
Definition state.h:212
int y
Definition state.h:210
bool enabled
Definition state.h:208
int x
Definition state.h:209
int width
Definition state.h:211
The State class is a basic class representing the rendering state setting.
Definition state.h:31
std::string m_className
Definition state.h:33
const std::string & className() const
The Stencil class inherits from the base class State, describing how the stencil test is operated dur...
Definition state.h:223
Operation dpfail
Action to take if the stencil test passes, but the depth test fails.
Definition state.h:256
Operation dppass
Action to take if both the stencil and the depth test pass.
Definition state.h:257
bool enabled
Definition state.h:253
Operation sfail
Action to take if the stencil test fails.
Definition state.h:255
Function func
Definition state.h:259
int mask
Definition state.h:261
Function
This enumeration defines different comparison operators used for the stencil test.
Definition state.h:229
Stencil(bool enabled=false, Stencil::Operation sfail=Stencil::Operation::KEEP, Stencil::Operation dpfail=Stencil::Operation::KEEP, Stencil::Operation dppass=Stencil::Operation::KEEP, Stencil::Function func=Stencil::Function::ALWAYS, int ref=0, int mask=0xFF)
int ref
This member specifies the reference value for the stencil test.
Definition state.h:260
Operation
This enumeration defines how to update the stencil buffer after the stencil test.
Definition state.h:242
The Texture class defines the texture image and sampling behaviour when you need to map a texture to ...
Definition state.h:274
int unit
Definition state.h:276
Texture(int unit, const ImagePtr &image, const SamplerPtr &sampler)
SamplerPtr sampler
Definition state.h:278
ImagePtr image
Definition state.h:277
std::shared_ptr< Image > ImagePtr
Definition types.h:53
std::shared_ptr< Sampler > SamplerPtr
Definition types.h:60