gramods
Loading...
Searching...
No Matches
MixingTexture.hh
1
2#ifndef GRAMODS_GRAPHICS_MIXINGTEXTURE
3#define GRAMODS_GRAPHICS_MIXINGTEXTURE
4
5#include <gmCore/OFactory.hh>
6
7#include <gmGraphics/Geometry.hh>
8#include <gmGraphics/Texture.hh>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
16class MixingTexture : public Texture {
17
18public:
19 MixingTexture();
20 virtual ~MixingTexture();
21
25 std::optional<TextureData> updateTexture(size_t frame_number,
26 Eye eye) override;
27
33 void traverse(Visitor *visitor) override;
34
42 void setMixType(std::string);
43
49 void addTexture(std::shared_ptr<TextureInterface>);
50
51 GM_OFI_DECLARE;
52
53private:
54 struct Impl;
55 std::unique_ptr<Impl> _impl;
56};
57
58END_NAMESPACE_GMGRAPHICS;
59
60#endif
void setMixType(std::string)
Set type of mixing.
Definition MixingTexture.cpp:45
void traverse(Visitor *visitor) override
Propagates the specified visitor.
Definition MixingTexture.cpp:154
std::optional< TextureData > updateTexture(size_t frame_number, Eye eye) override
Definition MixingTexture.cpp:56
void addTexture(std::shared_ptr< TextureInterface >)
Add a texture to mix.
Definition MixingTexture.cpp:40
The base of classes providing texture data for rendering.
Definition Texture.hh:18
The visitor of a design pattern for automatic traversal.
Definition Object.hh:75
An indexed eye that can be rendered.
Definition Eye.hh:20
Definition MixingTexture.cpp:19