gramods
Loading...
Searching...
No Matches
MultiscopicTextureMultiplexer.hh
1
2
3#ifndef GRAMODS_GRAPHICS_MULTISCOPICTEXTUREMULTIPLEXER
4#define GRAMODS_GRAPHICS_MULTISCOPICTEXTUREMULTIPLEXER
5
6#include <gmGraphics/Texture.hh>
7
8#include <gmCore/OFactory.hh>
9#include <gmCore/io_float.hh>
10#include <gmCore/io_eigen.hh>
11
12#include <memory>
13
14BEGIN_NAMESPACE_GMGRAPHICS;
15
20class MultiscopicTextureMultiplexer
21 : public gmGraphics::Texture {
22
23public:
24
25 MultiscopicTextureMultiplexer();
26
30 std::optional<TextureData> updateTexture(size_t frame_number,
31 Eye eye) override;
32
36 void addTexture(std::shared_ptr<TextureInterface> texture);
37
43 void traverse(Visitor *visitor) override;
44
45 GM_OFI_DECLARE;
46
47private:
48
49 struct Impl;
50 std::unique_ptr<Impl> _impl;
51};
52
53END_NAMESPACE_GMGRAPHICS;
54
55#endif
void addTexture(std::shared_ptr< TextureInterface > texture)
Adds a texture to the set of multiscopic textures.
Definition MultiscopicTextureMultiplexer.cpp:48
void traverse(Visitor *visitor) override
Propagates the specified visitor.
Definition MultiscopicTextureMultiplexer.cpp:53
std::optional< TextureData > updateTexture(size_t frame_number, Eye eye) override
Definition MultiscopicTextureMultiplexer.cpp:24
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 MultiscopicTextureMultiplexer.cpp:12