20#include "../variant/image.h"
21#include "../object/object.h"
282 std::shared_ptr<Image>
image,
283 std::shared_ptr<Sampler>
sampler);
The Blend class inherits from the State class, describing the blending operation during rendering tra...
Definition state.h:44
Function dstFunc
Definition state.h:78
Function srcFunc
Definition state.h:77
bool enabled
This member allows you to enable/diable blending.
Definition state.h:76
Function
The factors in this enumeration specify how the source and destination color values are combined duri...
Definition state.h:48
@ 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:68
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:79
The ColorMask class represents the color channel writing during rendering.
Definition state.h:89
bool green
Similar to red.
Definition state.h:92
bool alpha
Similar to red.
Definition state.h:94
bool red
This flag determines whether the red color channel is written to the framebuffer.
Definition state.h:91
ColorMask(bool red=true, bool green=true, bool blue=true, bool alpha=true)
bool blue
Similar to red.
Definition state.h:93
The Culling class inherits from the base class State, describing the culling operation during renderi...
Definition state.h:104
Mode
The enumeration defines the type of the face we want to cull.
Definition state.h:108
Mode mode
Definition state.h:122
Face face
Definition state.h:121
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:115
bool enabled
Definition state.h:120
The Depth class inherits from the base class State, describing how the depth test is operated during ...
Definition state.h:131
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:136
Function func
Definition state.h:148
bool writeMask
Definition state.h:149
bool enabled
This member allows you to enable/diable depth test.
Definition state.h:147
The Line class inherits from the base class State, defining width of Line.
Definition state.h:158
float width
Definition state.h:160
The Point class inherits from the base class State, defining size and other properties of Point.
Definition state.h:167
bool programmable
Definition state.h:170
Point(float size=1.0f, bool programmable=false)
float size
Definition state.h:169
The PolygonOffset class inherits from the base class State, defining the polygon offset.
Definition state.h:194
PolygonOffset(bool enabled=false, float factor=0.0f, float units=0.0f)
float units
Definition state.h:198
bool enabled
Definition state.h:196
float factor
Definition state.h:197
The Polygon class inherits from the base class State, defining mode of Polygon.
Definition state.h:178
Polygon(Mode mode=Polygon::Mode::FILL)
Mode
Definition state.h:181
Mode mode
Definition state.h:187
The Scissor class inherits from the base class State, defining a scissor test that discards fragments...
Definition state.h:207
Scissor(bool enabled=false, int x=0, int y=0, int width=0, int height=0)
int height
Definition state.h:213
int y
Definition state.h:211
bool enabled
Definition state.h:209
int x
Definition state.h:210
int width
Definition state.h:212
The State class is a basic class representing the rendering state setting.
Definition state.h:32
std::string m_className
Definition state.h:34
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:224
Operation dpfail
Action to take if the stencil test passes, but the depth test fails.
Definition state.h:257
Operation dppass
Action to take if both the stencil and the depth test pass.
Definition state.h:258
bool enabled
Definition state.h:254
Operation sfail
Action to take if the stencil test fails.
Definition state.h:256
Function func
Definition state.h:260
int mask
Definition state.h:262
Function
This enumeration defines different comparison operators used for the stencil test.
Definition state.h:230
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:261
Operation
This enumeration defines how to update the stencil buffer after the stencil test.
Definition state.h:243
The Texture class defines the texture image and sampling behaviour when you need to map a texture to ...
Definition state.h:275
std::shared_ptr< Sampler > sampler
Definition state.h:279
int unit
Definition state.h:277
Texture(int unit, std::shared_ptr< Image > image, std::shared_ptr< Sampler > sampler)
std::shared_ptr< Image > image
Definition state.h:278