gramods
Public Member Functions | List of all members
gramods::gmGraphics::TextureInterface Class Referenceabstract

The interface for classes providing texture data for rendering. More...

#include <TextureInterface.hh>

Inheritance diagram for gramods::gmGraphics::TextureInterface:
Inheritance graph
[legend]

Public Member Functions

virtual GLuint updateTexture (size_t frame_number, Eye eye)=0
 Updates the texture and returns the ID of the associated GL texture object. More...
 

Detailed Description

The interface for classes providing texture data for rendering.

Member Function Documentation

◆ updateTexture()

virtual GLuint gramods::gmGraphics::TextureInterface::updateTexture ( size_t  frame_number,
Eye  eye 
)
pure virtual

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

Must be called with GL context. Observe also that this method may 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

Implemented in gramods::gmGraphics::YuvDecodeTexture, gramods::gmGraphics::ViewTexture, gramods::gmGraphics::UvcTexture, gramods::gmGraphics::MultiscopicTextureSplitter, gramods::gmGraphics::MultiscopicTextureMultiplexer, gramods::gmGraphics::ImageTexture, and gramods::gmGraphics::ChromaKeyTexture.


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