Pioneer
Pattern.h
Go to the documentation of this file.
1 // Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _SCENEGRAPH_PATTERN_H
5 #define _SCENEGRAPH_PATTERN_H
6 /*
7  * Patterns are a color look-up trick to have customizable
8  * colours on models. Patterns are grayscale textures
9  * and accompanied by a tiny runtime generated gradient texture
10  * with 2-3 colours
11  */
12 #include "RefCounted.h"
13 
14 #include <vector>
15 #include <string>
16 
17 namespace Graphics {
18  class Texture;
19  class Renderer;
20 } // namespace Graphics
21 
22 namespace SceneGraph {
23 
24  struct Pattern {
28  std::string name;
29 
30  Pattern();
31  Pattern(const std::string &name, const std::string &path, Graphics::Renderer *r);
32  };
33 
34  typedef std::vector<Pattern> PatternContainer;
35 
36 } // namespace SceneGraph
37 #endif
Definition: Renderer.h:44
Definition: Background.h:14
Definition: CityOnPlanet.h:31
std::vector< Pattern > PatternContainer
Definition: Pattern.h:34
Definition: Pattern.h:24
bool smoothPattern
Definition: Pattern.h:26
Pattern()
Definition: Pattern.cpp:12
bool smoothColor
Definition: Pattern.h:25
std::string name
Definition: Pattern.h:28
RefCountedPtr< Graphics::Texture > texture
Definition: Pattern.h:27