Orxonox  0.0.5 Codename: Arcturus
TextureGenerator.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist
3  * > www.orxonox.net <
4  *
5  *
6  * License notice:
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Author:
23  * Fabian 'x3n' Landau
24  * Co-authors:
25  * Reto Grieder
26  *
27  */
28 
34 #ifndef _TextureGenerator_H__
35 #define _TextureGenerator_H__
36 
37 #include "tools/ToolsPrereqs.h"
38 
39 #include <map>
40 #include <string>
41 #include "util/UtilPrereqs.h"
42 
43 namespace orxonox
44 {
46  {
47  public:
48  static const std::string& getMaterialName(const std::string& textureName, const ColourValue& colour);
49 
50  private:
51  // static class, no instances allowed:
52  TextureGenerator() = delete;
53  TextureGenerator(const TextureGenerator&) = delete;
54  TextureGenerator& operator=(const TextureGenerator&) = delete;
55  ~TextureGenerator() = delete;
56 
57  static std::map<std::string, std::map<ColourValue, std::string>> materials_s;
58  static unsigned int materialCount_s;
59  };
60 }
61 
62 #endif /* _TextureGenerator_H__ */
::std::string string
Definition: gtest-port.h:756
static unsigned int materialCount_s
Definition: TextureGenerator.h:58
Shared library macros, enums, constants and forward declarations for the tools module ...
Definition: TextureGenerator.h:45
#define _ToolsExport
Definition: ToolsPrereqs.h:59
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
static std::map< std::string, std::map< ColourValue, std::string > > materials_s
Definition: TextureGenerator.h:57
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the util library ...