VertexShaderKey
-
class HPS::VertexShaderKey : public HPS::ShaderKey
The VertexShaderKey class contains objects for importing vertex shader source files and enumerations for shaders 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.
-
VertexShaderKey &operator=(VertexShaderKey &&in_that)
The move assignment operator transfers the underlying impl of the rvalue reference to this VertexShaderKey thereby avoiding a copy.
- Parameters
in_that – An rvalue reference to a VertexShaderKey to take the impl from.
- Returns
A reference to this VertexShaderKey.
-
VertexShaderKey &operator=(VertexShaderKey const &in_that)
Associate this VertexShaderKey with the same underlying impl as the source VertexShaderKey.
- Parameters
in_that – The source VertexShaderKey for the assignment.
- Returns
A reference to this VertexShaderKey.
-
void Set(VertexShaderKit const &in_kit)
Redefine the shader for this VertexShaderKey.
- Parameters
in_kit – The new shader for this VertexShaderKey.
-
void Show(VertexShaderKit &out_kit) const
Shows the shader for this VertexShaderKey.
- Parameters
out_kit – The shader for this VertexShaderKey.
-
VertexShaderKey()
The default constructor creates an uninitialized VertexShaderKey object. The Type() function will return Type::None.
-
VertexShaderKey(Key const &in_that)
This constructor creates a VertexShaderKey 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 vertex shader definition. Otherwise the copy will fail and the resulting VertexShaderKey will be invalid.
- Parameters
in_that – The source Key to copy.
-
VertexShaderKey(VertexShaderKey &&in_that)
The move constructor creates a VertexShaderKey by transferring the underlying impl of the rvalue reference to this VertexShaderKey thereby avoiding a copy and allocation.
- Parameters
in_that – An rvalue reference to a VertexShaderKey to take the impl from.
-
VertexShaderKey(VertexShaderKey const &in_that)
The copy constructor creates a VertexShaderKey object that shares the underlying smart-pointer of the source VertexShaderKey.
- Parameters
in_that – The source VertexShaderKey to copy.
-
~VertexShaderKey()
Public Static Attributes
-
static const HPS::Type staticType = HPS::Type::VertexShaderKey
-
inline virtual HPS::Type ObjectType() const