VertexColorStruct Struct Reference

#include <operatingsystem.h>

Detailed Description

Represents a polygon and its vertex color values.

See also
VertexColorTag
Since
R18

Vertex Colors

Vector4d32 a
 
Vector4d32 b
 
Vector4d32 c
 
Vector4d32 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 Vector32 &t_a, const Vector32 &t_b, const Vector32 &t_c, const Vector32 &t_d)
 
 VertexColorStruct (const Vector4d32 &t_a, const Vector4d32 &t_b, const Vector4d32 &t_c, const Vector4d32 &t_d)
 

Get/Set Vertex Colors

Vector4d32operator[] (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 Vector32 t_a,
const Vector32 t_b,
const Vector32 t_c,
const Vector32 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 Vector4d32 t_a,
const Vector4d32 t_b,
const Vector4d32 t_c,
const Vector4d32 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[]()

Vector4d32& 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.