ShaderTextureKey

class ShaderTextureKey : public HPS::ShaderKey

The ShaderTextureKey class contains objects for shader texture in Visualize.

Public Functions

inline virtual HPS::Type ObjectType() const

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Returns:The declared type of the object in question, which may differ from the true, underlying type.
ShaderTextureKey &operator=(ShaderTextureKey &&in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this ShaderTextureKey thereby avoiding a copy.

Parameters:in_that – An rvalue reference to a VertexShaderKey to take the impl from.
Returns:A reference to this ShaderTextureKey.
ShaderTextureKey &operator=(ShaderTextureKey const &in_that)

Associate this ShaderTextureKey with the same underlying impl as the source ShaderTextureKey.

Parameters:in_that – The source ShaderTextureKey for the assignment.
Returns:A reference to this ShaderTextureKey.
ShaderTextureKey() = default

The default constructor creates an uninitialized ShaderTextureKey object. The Type() function will return Type::None.

ShaderTextureKey(Key const &in_that)

This constructor creates a ShaderTextureKey object that shares the underlying smart-pointer of the source Key. The copy will only be successful if the source key is really a type of shader texture definition. Otherwise the copy will fail and the resulting ShaderTextureKey will be invalid.

Parameters:in_that – The source Key to copy.
ShaderTextureKey(ShaderTextureKey &&in_that)

The move constructor creates a ShaderTextureKey by transferring the underlying impl of the rvalue reference to this ShaderTextureKey thereby avoiding a copy and allocation.

Parameters:in_that – An rvalue reference to a ShaderTextureKey to take the impl from.
ShaderTextureKey(ShaderTextureKey const &in_that)

The copy constructor creates a ShaderTextureKey object that shares the underlying smart-pointer of the source ShaderTextureKey.

Parameters:in_that – The source ShaderTextureKey to copy.
void Show(ShaderTextureKit &out_kit) const

Shows the Texture for this ShaderTextureKey.

Parameters:out_kit – The Texture for this ShaderTextureKey.
~ShaderTextureKey()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::ShaderTextureKey