REFERENCE MANUAL
#include <hps.h>
Public Member Functions | |
Type | ObjectType () const |
ShaderDefinition & | operator= (ShaderDefinition const &in_that) |
ShaderDefinition & | operator= (ShaderDefinition &&in_that) |
void | Set (ShaderKit const &in_kit) |
ShaderDefinition () | |
ShaderDefinition (Definition const &in_that) | |
ShaderDefinition (ShaderDefinition const &in_that) | |
ShaderDefinition (ShaderDefinition &&in_that) | |
void | Show (ShaderKit &out_kit) const |
![]() | |
virtual void | Assign (Definition const &in_that) |
Definition () | |
Definition (Definition const &in_that) | |
Definition (Definition &&in_that) | |
bool | Equals (Definition const &in_that) const |
UTF8 | Name () const |
bool | operator!= (Definition const &in_that) const |
Definition & | operator= (Definition const &in_that) |
Definition & | operator= (Definition &&in_that) |
bool | operator== (Definition const &in_that) const |
PortfolioKey | Owner () const |
void | Undefine () |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (Type in_mask) const |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The ShaderDefinition class is a smart pointer to a database object. It is a handle to a shader defined within a portfolio.
ShaderDefinition::ShaderDefinition | ( | ) |
The default constructor creates an uninitialized ShaderDefinition object. The Type() function will return Type::None.
ShaderDefinition::ShaderDefinition | ( | Definition const & | in_that | ) |
This constructor creates a ShaderDefinition object that shares the underlying smart-pointer of the source Definition. The copy will only be successful if the source definition is really an upcast of a shader definition. Otherwise the copy will fail and the resulting ShaderDefinition will be invalid.
in_that | The source Definition to copy. |
ShaderDefinition::ShaderDefinition | ( | ShaderDefinition const & | in_that | ) |
The copy constructor creates a ShaderDefinition object that shares the underlying smart-pointer of the source ShaderDefinition.
in_that | The source ShaderDefinition to copy. |
ShaderDefinition::ShaderDefinition | ( | ShaderDefinition && | in_that | ) |
The move constructor creates a ShaderDefinition by transferring the underlying impl of the rvalue reference to this ShaderDefinition thereby avoiding a copy and allocation.
in_that | An rvalue reference to a ShaderDefinition to take the impl from. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from Definition.
ShaderDefinition& ShaderDefinition::operator= | ( | ShaderDefinition const & | in_that | ) |
Associate this ShaderDefinition with the same underlying impl as the source ShaderDefinition.
in_that | The source ShaderDefinition for the assignment. |
ShaderDefinition& ShaderDefinition::operator= | ( | ShaderDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ShaderDefinition thereby avoiding a copy.
in_that | An rvalue reference to a ShaderDefinition to take the impl from. |
void ShaderDefinition::Set | ( | ShaderKit const & | in_kit | ) |
Redefine the shader for this ShaderDefinition.
in_kit | The new shader for this ShaderDefinition. |
void ShaderDefinition::Show | ( | ShaderKit & | out_kit | ) | const |
Shows the shader for this ShaderDefinition.
out_kit | The shader for this ShaderDefinition. |