Add static WHITE and BLACK colour constants

This commit is contained in:
Danny Robson 2012-06-13 14:41:19 +10:00
parent 393d380001
commit c6106b0f53
2 changed files with 6 additions and 0 deletions

View File

@ -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 });
//-----------------------------------------------------------------------------

View File

@ -31,6 +31,9 @@ namespace util {
double green;
double blue;
double alpha;
static const colour WHITE;
static const colour BLACK;
};
template <> colour& randomise (colour&);