Pioneer
Loading...
Searching...
No Matches
ColorMap.h
Go to the documentation of this file.
1// Copyright © 2008-2024 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_COLORMAP_H
5#define _SCENEGRAPH_COLORMAP_H
6/*
7 * Color look-up texture generator for newmodel pattern system
8 */
9#include "Color.h"
10#include "graphics/Texture.h"
11
12namespace Graphics {
13 class Renderer;
14}
15
16namespace SceneGraph {
17
18 class ColorMap {
19 public:
20 ColorMap();
22 void Generate(Graphics::Renderer *r, const Color &a, const Color &b, const Color &c);
23 void SetSmooth(bool);
24
25 private:
26 void AddColor(int width, const Color &c, std::vector<Uint8> &out);
27
28 bool m_smooth;
30 };
31
32} // namespace SceneGraph
33
34#endif
Definition: Renderer.h:45
Definition: Texture.h:103
Definition: RefCounted.h:36
Definition: ColorMap.h:18
void SetSmooth(bool)
Definition: ColorMap.cpp:50
void Generate(Graphics::Renderer *r, const Color &a, const Color &b, const Color &c)
Definition: ColorMap.cpp:30
ColorMap()
Definition: ColorMap.cpp:10
Graphics::Texture * GetTexture()
Definition: ColorMap.cpp:15
Definition: Background.h:14
Definition: CityOnPlanet.h:32
Definition: Color.h:66