VertexColorStruct Struct Reference

#include <operatingsystem.h>

Detailed Description

Represents a polygon and its vertex color values.

See also
VertexColorTag
Since
R18

Vertex Colors

maxon::ColorA32 a
 
maxon::ColorA32 b
 
maxon::ColorA32 c
 
maxon::ColorA32 d
 

Constructors

 VertexColorStruct ()
 
 VertexColorStruct (_DONTCONSTRUCT dc)
 
 VertexColorStruct (const Vector &t_a, const Vector &t_b, const Vector &t_c, const Vector &t_d)
 
 VertexColorStruct (const maxon::Color32 &t_a, const maxon::Color32 &t_b, const maxon::Color32 &t_c, const maxon::Color32 &t_d)
 
 VertexColorStruct (const maxon::ColorA32 &t_a, const maxon::ColorA32 &t_b, const maxon::ColorA32 &t_c, const maxon::ColorA32 &t_d)
 

Get/Set Vertex Colors

maxon::ColorA32operator[] (Int32 index) const
 

Constructor & Destructor Documentation

◆ VertexColorStruct() [1/5]

Default constructor.

◆ VertexColorStruct() [2/5]

Creates an empty vertex color data without constructing the vectors.

Parameters
[in]dcDummy argument. Pass DC.

◆ VertexColorStruct() [3/5]

VertexColorStruct ( const Vector t_a,
const Vector t_b,
const Vector t_c,
const Vector t_d 
)

Fills the vertex colors.

Parameters
[in]t_a///< The vertex color for the first point.
[in]t_b///< The vertex color for the second point.
[in]t_c///< The vertex color for the third point.
[in]t_d///< The vertex color for the fourth point.

◆ VertexColorStruct() [4/5]

VertexColorStruct ( const maxon::Color32 t_a,
const maxon::Color32 t_b,
const maxon::Color32 t_c,
const maxon::Color32 t_d 
)

Fills the vertex colors.

Parameters
[in]t_a///< The vertex color for the first point.
[in]t_b///< The vertex color for the second point.
[in]t_c///< The vertex color for the third point.
[in]t_d///< The vertex color for the fourth point.

◆ VertexColorStruct() [5/5]

VertexColorStruct ( const maxon::ColorA32 t_a,
const maxon::ColorA32 t_b,
const maxon::ColorA32 t_c,
const maxon::ColorA32 t_d 
)

Fills the vertex colors.

Parameters
[in]t_a///< The vertex color for the first point.
[in]t_b///< The vertex color for the second point.
[in]t_c///< The vertex color for the third point.
[in]t_d///< The vertex color for the fourth point.

Member Function Documentation

◆ operator[]()

maxon::ColorA32& operator[] ( Int32  index) const

Gets the vertex color for the point at index.

Parameters
[in]indexThe point index. 0 <= index < 3.
0 returns a, 1 returns b, 2 returns c and 3 returns d.
Any other value must not be used and will crash.
Returns
The vertex color for the point at index.

Member Data Documentation

◆ a

The vertex color for the first point.

◆ b

The vertex color for the second point.

◆ c

The vertex color for the third point.

◆ d

The vertex color for the fourth point.