#include <K3dColor4.h>
Public Member Functions | |
| K3dColor4 () | |
| ~K3dColor4 () | |
| void | Reset () |
| Reset color to white color. | |
| GLubyte * | GetColorArray () |
| Get color array. | |
| int & | GetId () |
| Get or set color index in global data. | |
| GLubyte & | operator[] (int i) |
| Overloaded operator[] allows set vector arrays. | |
| GLubyte | operator[] (int i) const |
| GLubyte & | GetR () |
| Get or set red color. | |
| GLubyte & | GetG () |
| Get or set green color. | |
| GLubyte & | GetB () |
| Get or set blue color. | |
| GLubyte & | GetA () |
| Get or set alpha color. | |
Private Attributes | |
| GLubyte | m_aColor [4] |
| int | m_iId |
| Color index in global data. | |
Definition at line 38 of file K3dColor4.h.
| K3dColor4::K3dColor4 | ( | ) |
| K3dColor4::~K3dColor4 | ( | ) |
Definition at line 43 of file K3dColor4.cpp.
| void K3dColor4::Reset | ( | ) |
Reset color to white color.
Definition at line 48 of file K3dColor4.cpp.
References m_aColor.
Referenced by K3dColor4().
| GLubyte* K3dColor4::GetColorArray | ( | ) | [inline] |
| int& K3dColor4::GetId | ( | ) | [inline] |
Get or set color index in global data.
Definition at line 56 of file K3dColor4.h.
References m_iId.
Referenced by K3dColor4Build::CreateNewColor4().
| GLubyte& K3dColor4::operator[] | ( | int | i | ) | [inline] |
Overloaded operator[] allows set vector arrays.
Definition at line 62 of file K3dColor4.h.
References m_aColor.
| GLubyte K3dColor4::operator[] | ( | int | i | ) | const [inline] |
| GLubyte& K3dColor4::GetR | ( | ) | [inline] |
Get or set red color.
Definition at line 82 of file K3dColor4.h.
References m_aColor.
Referenced by K3dVM::AddVertex(), and K3dFaceBuild::LoadFaces().
| GLubyte& K3dColor4::GetG | ( | ) | [inline] |
Get or set green color.
Definition at line 88 of file K3dColor4.h.
References m_aColor.
Referenced by K3dVM::AddVertex().
| GLubyte& K3dColor4::GetB | ( | ) | [inline] |
Get or set blue color.
Definition at line 94 of file K3dColor4.h.
References m_aColor.
Referenced by K3dVM::AddVertex().
| GLubyte& K3dColor4::GetA | ( | ) | [inline] |
GLubyte K3dColor4::m_aColor[4] [private] |
Definition at line 40 of file K3dColor4.h.
Referenced by GetA(), GetB(), GetColorArray(), GetG(), GetR(), operator[](), and Reset().
int K3dColor4::m_iId [private] |
1.5.0