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

The base of classes providing texture data for rendering. More...

#include <Texture.hh>

Inheritance diagram for gramods::gmGraphics::Texture:
Collaboration diagram for gramods::gmGraphics::Texture:

Public Member Functions

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.
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist.
bool isInitialized ()
 Returns true if the Object is initialized.
Public Member Functions inherited from gramods::gmGraphics::TextureInterface
virtual std::optional< TextureData > updateTexture (size_t frame_number, Eye eye)=0
 Updates the texture and returns the ID of the associated GL texture object.

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

The base of classes providing texture data for rendering.

Member Function Documentation

◆ getDefaultKey()

virtual std::string gramods::gmGraphics::Texture::getDefaultKey ( )
inlineoverridevirtual

Returns the default key, in Configuration, for the Object.

Reimplemented from gramods::gmCore::Object.


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