/** Container class that'll deal with handling colors via a variety of different means. */ class VGUIColor { public: void VGUIColor(void); nonvirtual void SetColor(vector); nonvirtual void SetColorWithAlpha(vector, float); nonvirtual vector GetColor(void); nonvirtual float GetAlpha(void); private: vector m_colorValue; float m_alphaValue; }; void VGUIColor::VGUIColor(void) { m_colorValue = [0.0f, 0.0f, 0.0f]; m_alphaValue = 1.0f; } void VGUIColor::SetColor(vector value) { m_colorValue = value; } void VGUIColor::SetColorWithAlpha(vector color, float alpha) { m_colorValue = color; m_alphaValue = alpha; } vector VGUIColor::GetColor(void) { return m_colorValue; } float VGUIColor::GetAlpha(void) { return m_alphaValue; }