gramods
|
The interface for classes providing texture data for rendering. More...
#include <TextureInterface.hh>
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... | |
The interface for classes providing texture data for rendering.
|
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.
frame_number | The current frame being rendered. This number should increment by one for each frame, however it may wrap around and start over at zero. |
eye | Eye for which the texture is requested. An implementation may use different textures for different eyes or may reuse the same texture for all eyes. |
Implemented in gramods::gmGraphics::YuvDecodeTexture, gramods::gmGraphics::ViewTexture, gramods::gmGraphics::UvcTexture, gramods::gmGraphics::MultiscopicTextureSplitter, gramods::gmGraphics::MultiscopicTextureMultiplexer, gramods::gmGraphics::ImageTexture, and gramods::gmGraphics::ChromaKeyTexture.