Add static WHITE and BLACK colour constants
This commit is contained in:
parent
393d380001
commit
c6106b0f53
@ -25,6 +25,9 @@
|
||||
using namespace util;
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
const util::colour util::colour::WHITE ({ 1.0, 1.0, 1.0, 1.0 });
|
||||
const util::colour util::colour::BLACK ({ 0.0, 0.0, 0.0, 1.0 });
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -31,6 +31,9 @@ namespace util {
|
||||
double green;
|
||||
double blue;
|
||||
double alpha;
|
||||
|
||||
static const colour WHITE;
|
||||
static const colour BLACK;
|
||||
};
|
||||
|
||||
template <> colour& randomise (colour&);
|
||||
|
Loading…
Reference in New Issue
Block a user