00001 #pragma once 00002 00003 #include "constants.h" 00004 #include "GMathObject.h" 00005 00006 class GRGBAColor : public GMathObject 00007 { 00008 public: 00009 float r; 00010 float g; 00011 float b; 00012 float a; 00013 GRGBAColor darker(const float &v); 00014 GRGBAColor lighter(const float &v); 00015 GRGBAColor operator*(const float &f); 00016 GRGBAColor operator+(const GRGBAColor &c); 00017 GRGBAColor operator+(const float &f); 00018 GRGBAColor operator=(const GRGBAColor &c); 00019 };