zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Colors.h
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
34 #ifndef ZENI_COLORS_H
35 #define ZENI_COLORS_H
36 
37 #include <Zeni/Color.h>
38 #include <Zeni/Database.h>
39 #include <Zeni/Singleton.h>
40 
41 namespace Zeni {
42 
43  class ZENI_DLL Colors;
44 
45 #ifdef _WINDOWS
46  ZENI_EXT template class ZENI_DLL Singleton<Colors>;
47  ZENI_EXT template class ZENI_DLL Database<Color>;
48 #endif
49 
50  class ZENI_DLL Colors : public Singleton<Colors>, public Database<Color> {
51  friend class Singleton<Colors>;
52 
53  static Colors * create();
54 
55  Colors();
56  ~Colors();
57 
58  // Undefined
59  Colors(const Colors &);
60  Colors & operator=(const Colors &);
61 
62  virtual Color * load(XML_Element_c &xml_element, const String &name, const String &filename);
63  };
64 
65  ZENI_DLL Colors & get_Colors();
66 
67 }
68 
69 #endif
Colors & get_Colors()
Get access to the singleton.
Definition: Colors.cpp:51
A Color database read in from a file.
Definition: Colors.h:50
EGLImageKHR EGLint * name
Definition: eglext.h:284
Color.
Definition: Color.h:41