License Public Domain
Lines 13
Keywords
class (8) color (8) OpenGL (15)
Included in this Library
Permissions
Viewable by Everyone
Editable by All Siafoo Users
Hide
Stay up to dateembedded code automagically updates, each snippet and article has a feed Join Siafoo Now or Learn More

color.cpp Atom Feed 0

In Brief Implements class Color located in color.h.
# 's
 1#include "color.h"
2
3using namespace hud;
4
5bool Color::verifyRange() const
6{
7 for (unsigned i = 0; i < 4; ++i)
8 {
9 if (m_color[i] < 0 || m_color[i] > 1)
10 {
11 return false;
12 }
13 }
14 return true;
15}

Implements class Color located in color.h.