![]() |
LibCarna Version 3.4.0
|
Defines vertex component for colors. Usage is explained here. More...
#include <Vertex.hpp>
Public Member Functions | |
VertexColor () | |
template<typename VectorType > | |
void | setColor (const VectorType &color) |
Public Attributes | |
float | r |
Holds the red color component of this vertex. | |
float | g |
Holds the green color component of this vertex. | |
float | b |
Holds the blue color component of this vertex. | |
float | a |
Holds the alpha color component of this vertex. | |
Defines vertex component for colors. Usage is explained here.
Definition at line 141 of file Vertex.hpp.
LibCarna::base::VertexColor::VertexColor | ( | ) |
Initializes to \( \left( 1, 1, 1, 1 \right) \).
void LibCarna::base::VertexColor::setColor | ( | const VectorType & | color | ) |
Sets the color vector.
Definition at line 169 of file Vertex.hpp.
LibCarna::base::VertexColor::a |
Holds the alpha color component of this vertex.
Definition at line 155 of file Vertex.hpp.
LibCarna::base::VertexColor::b |
Holds the blue color component of this vertex.
Definition at line 155 of file Vertex.hpp.
LibCarna::base::VertexColor::g |
Holds the green color component of this vertex.
Definition at line 155 of file Vertex.hpp.
LibCarna::base::VertexColor::r |
Holds the red color component of this vertex.
Definition at line 155 of file Vertex.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen