Ocular Engine
Color.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_MATH_COLOR_H__
19 #define __H__OCULAR_MATH_COLOR_H__
20 
21 #include "Vector4.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Core
36  {
40  class Color : public Math::Vector4f
41  {
42  public:
43 
44  Color(Math::Vector4f const& color);
45  Color(float r, float g, float b, float a = 1.0f);
46  Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
47  Color();
48 
49  ~Color();
50 
51  //----------------------------------------------------------------
52  // Pre-Defined Colors
53  //----------------------------------------------------------------
54 
58  static Color const& Brown();
59 
63  static Color const& Black();
64 
68  static Color const& Blue();
69 
73  static Color const& Clear();
74 
78  static Color const& Cyan();
79 
83  static Color const& DarkGray();
84 
88  static Color const& DefaultClearGray();
89 
93  static Color const& ErrorPink();
94 
98  static Color const& FrigidBlue();
99 
103  static Color const& Gold();
104 
108  static Color const& Gray();
109 
113  static Color const& Green();
114 
118  static Color const& GreenHighlight();
119 
123  static Color const& Magenta();
124 
128  static Color const& Maroon();
129 
133  static Color const& Orange();
134 
138  static Color const& Pink();
139 
143  static Color const& Purple();
144 
148  static Color const& Red();
149 
153  static Color const& Silver();
154 
158  static Color const& White();
159 
163  static Color const& Yellow();
164 
165  protected:
166 
167  private:
168  };
169  }
173 }
178 OCULAR_REGISTER_TYPE_CUSTOM(Ocular::Core::Color, "Color");
179 
180 //------------------------------------------------------------------------------------------
181 
182 #endif
static Color const & Gray()
Definition: Color.cpp:197
Definition: Matrix3x3.hpp:39
static Color const & Red()
Definition: Color.cpp:245
static Color const & Green()
Definition: Color.cpp:203
static Color const & Clear()
Definition: Color.cpp:155
static Color const & FrigidBlue()
Definition: Color.cpp:185
static Color const & Orange()
Definition: Color.cpp:227
static Color const & DarkGray()
Definition: Color.cpp:167
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
static Color const & Black()
Definition: Color.cpp:143
Definition: Color.hpp:40
static Color const & Blue()
Definition: Color.cpp:149
static Color const & ErrorPink()
Definition: Color.cpp:179
static Color const & DefaultClearGray()
Definition: Color.cpp:173
static Color const & Maroon()
Definition: Color.cpp:221
static Color const & GreenHighlight()
Definition: Color.cpp:209
static Color const & Silver()
Definition: Color.cpp:251
static Color const & Cyan()
Definition: Color.cpp:161
static Color const & Pink()
Definition: Color.cpp:233
static Color const & Magenta()
Definition: Color.cpp:215
static Color const & Purple()
Definition: Color.cpp:239
static Color const & Yellow()
Definition: Color.cpp:263
static Color const & Brown()
Definition: Color.cpp:137
static Color const & White()
Definition: Color.cpp:257
static Color const & Gold()
Definition: Color.cpp:191