VertexColorStruct Struct Reference

#include <operatingsystem.h>

详细描述

Represents a polygon and its vertex color values.

另请参阅
VertexColorTag
由于
R18

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() [1/5]

VertexColorStruct ( )

Default constructor.

◆  VertexColorStruct() [2/5]

VertexColorStruct ( _DONTCONSTRUCT   dc )

Creates an empty vertex color data without constructing the vectors.

参数
[in] dc Dummy argument. Pass DC.

◆  VertexColorStruct() [3/5]

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() [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.

参数
[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.

参数
[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.

成员函数文档编制

◆  operator[]()

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.
返回
The vertex color for the point at index .

Member Data Documentation

◆  a

maxon::ColorA32 a

The vertex color for the first point.

◆  b

maxon::ColorA32 b

The vertex color for the second point.

◆  c

maxon::ColorA32 c

The vertex color for the third point.

◆  d

maxon::ColorA32 d

The vertex color for the fourth point.