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

This texture mixes the graphics from two or more other textures, depending on type of mixing. More...

#include <MixingTexture.hh>

Inheritance diagram for gramods::gmGraphics::MixingTexture:
Collaboration diagram for gramods::gmGraphics::MixingTexture:

Classes

struct  Impl

Public Member Functions

std::optional< TextureData > updateTexture (size_t frame_number, Eye eye) override
void traverse (Visitor *visitor) override
 Propagates the specified visitor.
void setMixType (std::string)
 Set type of mixing.
void addTexture (std::shared_ptr< TextureInterface >)
 Add a texture to mix.
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

This texture mixes the graphics from two or more other textures, depending on type of mixing.

Member Function Documentation

◆ addTexture()

void gramods::gmGraphics::MixingTexture::addTexture ( std::shared_ptr< TextureInterface > v)

Add a texture to mix.

XML-attribute: texture

◆ setMixType()

void gramods::gmGraphics::MixingTexture::setMixType ( std::string str)

Set type of mixing.

Default is average.

XML-attribute: mixType

See also
MixingShaders

◆ traverse()

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

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.

◆ updateTexture()

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

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