gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmGraphics::MultiscopicTextureSplitter Class Reference

Texture that reads off one part at a time from another texture that encodes multiple textures, typically for stereoscopic transcoding. More...

#include <MultiscopicTextureSplitter.hh>

Inheritance diagram for gramods::gmGraphics::MultiscopicTextureSplitter:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::MultiscopicTextureSplitter:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

GLuint updateTexture (size_t frame_number, Eye eye) override
 Updates the texture and returns the ID of the associated GL texture object. More...
 
void setTexture (std::shared_ptr< TextureInterface > texture)
 Set the texture to split. More...
 
void setSplitType (size_t type)
 Sets the type of multiscopic splitting of the input texture. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
- Public Member Functions inherited from gramods::gmGraphics::Texture
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

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

Detailed Description

Texture that reads off one part at a time from another texture that encodes multiple textures, typically for stereoscopic transcoding.

Member Function Documentation

◆ setSplitType()

void gramods::gmGraphics::MultiscopicTextureSplitter::setSplitType ( size_t  type)

Sets the type of multiscopic splitting of the input texture.

Possible values are

  • 0, horizontal (default) and
  • 1, vertical

XML-attribute: splitType

◆ setTexture()

void gramods::gmGraphics::MultiscopicTextureSplitter::setTexture ( std::shared_ptr< TextureInterface texture)

Set the texture to split.

XML-attribute: texture

◆ traverse()

void gramods::gmGraphics::MultiscopicTextureSplitter::traverse ( Visitor visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.

◆ updateTexture()

GLuint gramods::gmGraphics::MultiscopicTextureSplitter::updateTexture ( size_t  frame_number,
Eye  eye 
)
overridevirtual

Updates the texture and returns the ID of the associated GL texture object.

Must be called with GL context. This method will perform off-screen rendering.

Parameters
frame_numberThe current frame being rendered. This number should increment by one for each frame, however it may wrap around and start over at zero.
eyeEye for which the texture is requested. An implementation may use different textures for different eyes or may reuse the same texture for all eyes.
Returns
OpenGL texture ID of the updated texture

Implements gramods::gmGraphics::TextureInterface.


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