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

Default constructor.

Creates an empty vertex color data without constructing the vectors.

Parameters
[in]dcDummy argument. Pass DC.
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 ( 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 ( 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

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

The vertex color for the first point.

The vertex color for the second point.

The vertex color for the third point.

The vertex color for the fourth point.