LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LibCarna::base::VertexColor Struct Reference

Defines vertex component for colors. Usage is explained here. More...

#include <Vertex.hpp>

+ Inheritance diagram for LibCarna::base::VertexColor:

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.
 

Detailed Description

Defines vertex component for colors. Usage is explained here.

Author
Leonid Kostrykin

Definition at line 141 of file Vertex.hpp.

Constructor & Destructor Documentation

◆ VertexColor()

LibCarna::base::VertexColor::VertexColor ( )

Initializes to \( \left( 1, 1, 1, 1 \right) \).

Member Function Documentation

◆ setColor()

template<typename VectorType >
void LibCarna::base::VertexColor::setColor ( const VectorType color)

Sets the color vector.

Definition at line 169 of file Vertex.hpp.

Member Data Documentation

◆ a

LibCarna::base::VertexColor::a

Holds the alpha color component of this vertex.

Definition at line 155 of file Vertex.hpp.

◆ b

LibCarna::base::VertexColor::b

Holds the blue color component of this vertex.

Definition at line 155 of file Vertex.hpp.

◆ g

LibCarna::base::VertexColor::g

Holds the green color component of this vertex.

Definition at line 155 of file Vertex.hpp.

◆ r

LibCarna::base::VertexColor::r

Holds the red color component of this vertex.

Definition at line 155 of file Vertex.hpp.


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