class TMaterialParamSpriteImage

template<bool IsRenderProxy>

A handle that allows you to set a Material parameter.

Internally keeps a reference to the material parameters so that possibly expensive lookup of parameter name can be avoided each time the parameter is accessed, and instead the handle can be cached.

Public

Constructors

TMaterialParamSpriteImage<IsRenderProxy>

TMaterialParamSpriteImage<IsRenderProxy>(const String &name, const MaterialPtrType &material)

TMaterialParamSpriteImage<IsRenderProxy>

TMaterialParamSpriteImage<IsRenderProxy>()

Methods

Set

void Set(const SpriteImageType &image) const

Get

SpriteImageType Get() const

Operators

operator==

bool operator==(const std::nullptr_t &nullval) const

Checks if param is initialized.

Protected

Fields

mParamIndex

u32 mParamIndex

mMaterial

MaterialPtrType mMaterial