24 #if defined(_DEBUG) && defined(_WINDOWS)
25 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
34 template class Singleton<Colors>;
35 template class Database<Color>;
37 Colors * Colors::create() {
42 : Database<Color>(
"config/colors.xml",
"Colors")
55 Color * Colors::load(XML_Element_c &xml_element,
const String &,
const String &) {
56 const float alpha = xml_element[
"alpha"].to_float();
57 const float red = xml_element[
"red"].to_float();
58 const float green = xml_element[
"green"].to_float();
59 const float blue = xml_element[
"blue"].to_float();
61 return new Color(alpha, red, green, blue);
Colors & get_Colors()
Get access to the singleton.
static void init(struct bs2b *bs2b)
A Color database read in from a file.
GLclampf GLclampf GLclampf alpha