gramods
Loading...
Searching...
No Matches
MultiscopicMultiplexer.hh
1
2#ifndef GRAMODS_GRAPHICS_MULTISCOPICMULTIPLEXER
3#define GRAMODS_GRAPHICS_MULTISCOPICMULTIPLEXER
4
5#include <gmGraphics/config.hh>
6
7#include <gmCore/Object.hh>
8#include <gmCore/OFactory.hh>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
30 : public gmCore::Object {
31
32public:
33
39 virtual size_t getEyeCount() = 0;
40
44 virtual void prepare() = 0;
45
49 virtual void setupRendering(size_t eye) = 0;
50
54 virtual void finalize() = 0;
55
60 virtual std::string getDefaultKey() override { return "multiscopicMultiplexer"; }
61
62};
63
64END_NAMESPACE_GMGRAPHICS;
65
66#endif
Base type for objects in the Gramods package for standardized handling of construction,...
Definition Object.hh:42
The multiscopic multiplexing is the process of rendering images for the left and the right (or more) ...
Definition MultiscopicMultiplexer.hh:30
virtual void setupRendering(size_t eye)=0
Sets up rendering for one eye at a time.
virtual void prepare()=0
Prepares the multiplexer for rendering to the two eyes.
virtual size_t getEyeCount()=0
Returns the number of eyes that should be rendered for the multiplexer.
virtual void finalize()=0
Finalizes the multiplexing.
virtual std::string getDefaultKey() override
Returns the default key, in Configuration, for the Object.
Definition MultiscopicMultiplexer.hh:60