A core to set a vertex color or a color transformation to be applied to subsequent geometry.
More...
#include "ColorCore.h"
A core to set a vertex color or a color transformation to be applied to subsequent geometry.
Definition at line 40 of file ColorCore.h.
◆ ColorCore()
scg::ColorCore::ColorCore |
( |
| ) |
|
◆ ~ColorCore()
virtual scg::ColorCore::~ColorCore |
( |
| ) |
|
|
virtual |
◆ create()
◆ render()
virtual void scg::ColorCore::render |
( |
RenderState * |
renderState | ) |
|
|
virtual |
Render core, i.e., post-multiply current color matrix by local color matrix and set vertex color (if defined).
Implements scg::Core.
◆ renderPost()
virtual void scg::ColorCore::renderPost |
( |
RenderState * |
renderState | ) |
|
|
virtual |
Render core after traversing sub-tree, i.e., restore previous color matrix.
Reimplemented from scg::Core.
◆ setColor()
ColorCore* scg::ColorCore::setColor |
( |
glm::vec4 |
color | ) |
|
Set vertex color.
- Parameters
-
color | vertex color; for color.w < 0, the vertex color is unset |
- Returns
- this pointer for method chaining
◆ setMatrix()
ColorCore* scg::ColorCore::setMatrix |
( |
glm::mat4 |
matrix | ) |
|
Set color matrix.
- Returns
- this pointer for method chaining
◆ color_
glm::vec4 scg::ColorCore::color_ |
|
protected |
◆ colorCoreOld_
◆ isColorSet_
bool scg::ColorCore::isColorSet_ |
|
protected |
◆ matrix_
glm::mat4 scg::ColorCore::matrix_ |
|
protected |
The documentation for this class was generated from the following file: