Ocular Engine
Ocular::Core::Color Class Reference
Inheritance diagram for Ocular::Core::Color:
Ocular::Math::Vector4< T >

Public Member Functions

 Color (Math::Vector4f const &color)
 
 Color (float r, float g, float b, float a=1.0f)
 
 Color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
- Public Member Functions inherited from Ocular::Math::Vector4< T >
 Vector4 (T const *values)
 
 Vector4 (Vector3< T > const &vec, T pW=static_cast< T >(1.0f))
 
 Vector4 (T const &pX, T const &pY, T const &pZ, T const &pW)
 
T & operator[] (unsigned const &index)
 
operator[] (unsigned const &index) const
 
Vector4< T > operator- ()
 
Vector4< T > & operator= (Vector4< T > const &rhs)
 
Vector4< T > & operator= (Vector3< T > const &rhs)
 
Vector4< T > & operator+= (Vector4< T > const &rhs)
 
Vector4< T > & operator+= (T const &rhs)
 
Vector4< T > & operator-= (Vector4< T > const &rhs)
 
Vector4< T > & operator-= (T const &rhs)
 
Vector4< T > & operator*= (Vector4< T > const &rhs)
 
Vector4< T > & operator*= (T const &rhs)
 
Vector4< T > & operator/= (Vector4< T > const &rhs)
 
Vector4< T > & operator/= (T const &rhs)
 
Vector2< T > xy () const
 
Vector3< T > xyz () const
 
getMagnitude () const
 
getLength () const
 
void normalize ()
 
Vector4< T > getNormalized () const
 
dot (Vector4< T > const &rhs) const
 
angleBetween (Vector4< T > const &rhs) const
 
distanceTo (Vector4< T > const &rhs) const
 
void homogenize ()
 

Static Public Member Functions

static Color const & Brown ()
 
static Color const & Black ()
 
static Color const & Blue ()
 
static Color const & Clear ()
 
static Color const & Cyan ()
 
static Color const & DarkGray ()
 
static Color const & DefaultClearGray ()
 
static Color const & ErrorPink ()
 
static Color const & FrigidBlue ()
 
static Color const & Gold ()
 
static Color const & Gray ()
 
static Color const & Green ()
 
static Color const & GreenHighlight ()
 
static Color const & Magenta ()
 
static Color const & Maroon ()
 
static Color const & Orange ()
 
static Color const & Pink ()
 
static Color const & Purple ()
 
static Color const & Red ()
 
static Color const & Silver ()
 
static Color const & White ()
 
static Color const & Yellow ()
 
- Static Public Member Functions inherited from Ocular::Math::Vector4< T >
static Vector4< T > Midpoint (Vector4< T > const &a, Vector4< T > const &b)
 

Additional Inherited Members

- Public Attributes inherited from Ocular::Math::Vector4< T >
union {
   T   x
 
   T   r
 
   T   u
 
   T   s
 
}; 
 
union {
   T   y
 
   T   g
 
   T   v
 
   T   t
 
}; 
 
union {
   T   z
 
   T   b
 
   T   p
 
}; 
 
union {
   T   w
 
   T   a
 
   T   q
 
}; 
 
- Static Public Attributes inherited from Ocular::Math::Vector4< T >
static bool OCULAR_INTERNAL_Force = false
 

Member Function Documentation

Color const & Ocular::Core::Color::Black ( )
static

RGBA: (0.0f, 0.0f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::Blue ( )
static

RGBA: (0.0f, 0.0f, 1.0f, 1.0f)

Color const & Ocular::Core::Color::Brown ( )
static

RGBA: (0.545f, 0.27f, 0.075f, 1.0f)

Color const & Ocular::Core::Color::Clear ( )
static

RGBA: (0.0f, 0.0f, 0.0f, 0.0f)

Color const & Ocular::Core::Color::Cyan ( )
static

RGBA: (0.0f, 1.0f, 1.0f, 1.0f)

Color const & Ocular::Core::Color::DarkGray ( )
static

RGBA: (0.2f, 0.2f, 0.2f, 1.0f)

Color const & Ocular::Core::Color::DefaultClearGray ( )
static

RGBA: (0.17647f, 0.17647f, 0.18823f, 1.0f)

Color const & Ocular::Core::Color::ErrorPink ( )
static

RGBA: (1.0f, 0.078f, 0.576f, 1.0f)

Color const & Ocular::Core::Color::FrigidBlue ( )
static

RGBA: (0.153f, 0.863f, 0.973f, 1.0f)

Color const & Ocular::Core::Color::Gold ( )
static

RGBA: (1.0f, 0.843f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::Gray ( )
static

RGBA: (0.5f, 0.5f, 0.5f, 1.0f)

Color const & Ocular::Core::Color::Green ( )
static

RGBA: (0.0f, 1.0f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::GreenHighlight ( )
static

RGBA: (0.14509f, 0.76078f, 0.24313f, 1.0f)

Color const & Ocular::Core::Color::Magenta ( )
static

RGBA: (1.0f, 0.0f, 1.0f, 1.0f)

Color const & Ocular::Core::Color::Maroon ( )
static

RGBA: (0.502f, 0.0f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::Orange ( )
static

RGBA: (1.0f, 0.647f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::Pink ( )
static

RGBA: (1.0f, 0.753f, 0.796f, 1.0f)

Color const & Ocular::Core::Color::Purple ( )
static

RGBA: (0.294f, 0.0f, 0.51f, 1.0f)

Color const & Ocular::Core::Color::Red ( )
static

RGBA: (1.0f, 0.0f, 0.0f, 1.0f)

Color const & Ocular::Core::Color::Silver ( )
static

RGBA: (0.753f, 0.753f, 0.753f, 1.0f)

Color const & Ocular::Core::Color::White ( )
static

RGBA: (1.0f, 1.0f, 1.0f, 1.0f)

Color const & Ocular::Core::Color::Yellow ( )
static

RGBA: (1.0f, 1.0f, 0.0f, 1.0f)


The documentation for this class was generated from the following files: