gramods
Loading...
Searching...
No Matches
gramods::gmGraphics::MultiscopicTextureMultiplexer Class Reference

Texture that returns one other texture at a time that encodes multiple textures, typically for stereoscopic transcoding. More...

#include <MultiscopicTextureMultiplexer.hh>

Inheritance diagram for gramods::gmGraphics::MultiscopicTextureMultiplexer:
Collaboration diagram for gramods::gmGraphics::MultiscopicTextureMultiplexer:

Classes

struct  Impl

Public Member Functions

std::optional< TextureData > updateTexture (size_t frame_number, Eye eye) override
void addTexture (std::shared_ptr< TextureInterface > texture)
 Adds a texture to the set of multiscopic textures.
void traverse (Visitor *visitor) override
 Propagates the specified visitor.
Public Member Functions inherited from gramods::gmGraphics::Texture
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object.
Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data.
virtual ~Object ()
 Cleaning up internal data.
virtual void initialize ()
 Called to initialize the Object.
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument.
bool isInitialized ()
 Returns true if the Object is initialized.

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi

Additional Inherited Members

Public Types inherited from gramods::gmGraphics::TextureInterface
enum  TextureColor { GRAY , RGB , BGR }
 Type of color in the texture. More...
Static Public Member Functions inherited from gramods::gmGraphics::TextureInterface
static std::string getRgbSwizzle (TextureColor c)
 Returns the GLSL swizzling required to get RGB from the specified color type.
static std::string getRgbaSwizzle (TextureColor c)
 Returns the GLSL swizzling required to get RGBA from the specified color type.

Detailed Description

Texture that returns one other texture at a time that encodes multiple textures, typically for stereoscopic transcoding.

Member Function Documentation

◆ addTexture()

void gramods::gmGraphics::MultiscopicTextureMultiplexer::addTexture ( std::shared_ptr< TextureInterface > texture)

Adds a texture to the set of multiscopic textures.

◆ traverse()

void gramods::gmGraphics::MultiscopicTextureMultiplexer::traverse ( Visitor * visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.

◆ updateTexture()

std::optional< TextureInterface::TextureData > gramods::gmGraphics::MultiscopicTextureMultiplexer::updateTexture ( size_t frame_number,
Eye eye )
overridevirtual

The documentation for this class was generated from the following files: