#include <operatingsystem.h>
Represents a polygon and its vertex color values.
Vertex Colors |
|
| maxon::ColorA32 | a |
| maxon::ColorA32 | b |
| maxon::ColorA32 | c |
| maxon::ColorA32 | d |
Constructors |
|
| VertexColorStruct () | |
| VertexColorStruct ( _DONTCONSTRUCT dc) | |
| VertexColorStruct (const 向量 &t_a, const 向量 &t_b, const 向量 &t_c, const 向量 &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::ColorA32 & | operator[] ( Int32 index) const |
| VertexColorStruct | ( | ) |
Default constructor.
| VertexColorStruct | ( | _DONTCONSTRUCT | dc | ) |
Creates an empty vertex color data without constructing the vectors.
| [in] | dc | Dummy argument. Pass DC. |
| VertexColorStruct | ( | const 向量 & | t_a , |
| const 向量 & | t_b , | ||
| const 向量 & | t_c , | ||
| const 向量 & | t_d | ||
| ) |
Fills the vertex colors.
| [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 maxon::Color32 & | t_a , |
| const maxon::Color32 & | t_b , | ||
| const maxon::Color32 & | t_c , | ||
| const maxon::Color32 & | t_d | ||
| ) |
Fills the vertex colors.
| [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 maxon::ColorA32 & | t_a , |
| const maxon::ColorA32 & | t_b , | ||
| const maxon::ColorA32 & | t_c , | ||
| const maxon::ColorA32 & | t_d | ||
| ) |
Fills the vertex colors.
| [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. |
| maxon::ColorA32 & operator[] | ( | Int32 | index | ) | const |
Gets the vertex color for the point at index .
| [in] | index |
The 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. |
| maxon::ColorA32 a |
The vertex color for the first point.
| maxon::ColorA32 b |
The vertex color for the second point.
| maxon::ColorA32 c |
The vertex color for the third point.
| maxon::ColorA32 d |
The vertex color for the fourth point.