Supported Parameter List: vertexcolor
This structure represents a vertex RGBA color. Unlike CColor, each component value of CVertexColor is a byte. More...
#include <xsi_vertexcolor.h>
Public Member Functions |
|
| CVertexColor () | |
| CVertexColor (const CVertexColor &in_color) | |
| CVertexColor (unsigned char in_rc, unsigned char in_gc, unsigned char in_bc, unsigned char in_ac) | |
| bool | operator== (const CVertexColor &in_vertexcolor) const |
| bool | operator!= (const CVertexColor &in_vertexcolor) const |
Public Attributes |
|
| unsigned char | r |
| unsigned char | g |
| unsigned char | b |
| unsigned char | a |
CVertexColor can be created from Triangle and TriangleVertex objects.
| CVertexColor | ( | ) | [inline] |
Default constructor.
| CVertexColor | ( | const CVertexColor & | in_color | ) | [inline] |
Copy constructor.
| in_color | Constant CColor object |
| CVertexColor | ( | unsigned char | in_rc, | |
| unsigned char | in_gc, | |||
| unsigned char | in_bc, | |||
| unsigned char | in_ac | |||
| ) | [inline] |
Constructor. Creates a CVertexColor object from r,g,b,a values.
| in_rc | Red component value. | |
| in_gc | Green component value. | |
| in_bc | Blue component value. | |
| in_ac | Alpha component value. |
| bool operator== | ( | const CVertexColor & | in_vertexcolor | ) | const [inline] |
Equality operator.
| in_vertexcolor | CVertexColor to compare with. |
| bool operator!= | ( | const CVertexColor & | in_vertexcolor | ) | const [inline] |
Inequality operator.
| in_vertexcolor | CVertexColor to compare with. |
| unsigned char r |
Red component value
| unsigned char g |
Green component value
| unsigned char b |
Blue component value
| unsigned char a |
Alpha component value