Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::base::VertexColor Struct Reference

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

#include <Vertex.h>

+ Inheritance diagram for Carna::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
Date
1.9.14 - 31.3.15

Definition at line 139 of file Vertex.h.

Constructor & Destructor Documentation

◆ VertexColor()

Carna::base::VertexColor::VertexColor ( )

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

Member Function Documentation

◆ setColor()

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

Sets the color vector.

Since
API Version 3.2.0

Definition at line 169 of file Vertex.h.


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