#include <hps.h>
Public Member Functions | |
| TextureDefinition () | |
| TextureDefinition (Definition const &in_that) | |
| TextureDefinition (TextureDefinition const &in_that) | |
| TextureDefinition & | operator= (TextureDefinition const &in_that) |
| TextureDefinition (TextureDefinition &&in_that) | |
| TextureDefinition & | operator= (TextureDefinition &&in_that) |
| HPS::Type | ObjectType () const |
| void | SetSource (ImageDefinition const &in_source) |
| void | ShowSource (ImageDefinition &out_source) const |
| void | SetOptions (TextureOptionsKit const &in_options) |
| void | ShowOptions (TextureOptionsKit &out_options) const |
Public Member Functions inherited from HPS::Definition | |
| Definition () | |
| Definition (Definition const &in_that) | |
| Definition & | operator= (Definition const &in_that) |
| Definition (Definition &&in_that) | |
| Definition & | operator= (Definition &&in_that) |
| void | Undefine () |
| PortfolioKey | Owner () const |
| UTF8 | Name () const |
| virtual void | Assign (Definition const &in_that) |
| bool | Equals (Definition const &in_that) const |
| bool | operator== (Definition const &in_that) const |
| bool | operator!= (Definition const &in_that) const |
Public Member Functions inherited from HPS::Object | |
| Object & | operator= (Object const &other_object) |
| Object (Object &&in_that) | |
| Object & | operator= (Object &&in_that) |
| HPS::Type | Type () const |
| virtual bool | Empty () const |
| virtual void | Reset () |
| bool | HasType (HPS::Type in_mask) const |
| intptr_t | GetClassID () const |
| intptr_t | GetInstanceID () const |
Additional Inherited Members | |
Static Public Member Functions inherited from HPS::Object | |
| template<typename T > | |
| static intptr_t | ClassID () |
The TextureDefinition class is a smart pointer to a database object. It is a handler to a texture defined within a portfolio.
| HPS::TextureDefinition::TextureDefinition | ( | ) |
The default constructor creates an uninitialized TextureDefinition object. The Type() function will return Type::None.
| HPS::TextureDefinition::TextureDefinition | ( | Definition const & | in_that | ) |
This constructor creates a TextureDefinition 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 texture definition. Otherwise the copy will fail and the resulting TextureDefinition will be invalid.
| in_that | The source Definition to copy. |
| HPS::TextureDefinition::TextureDefinition | ( | TextureDefinition const & | in_that | ) |
The copy constructor creates an TextureDefinition object that shares the underlying smart-pointer of the source TextureDefinition.
| in_that | The source TextureDefinition to copy. |
| HPS::TextureDefinition::TextureDefinition | ( | TextureDefinition && | in_that | ) |
The move constructor creates a TextureDefinition by transferring the underlying impl of the rvalue reference to this TextureDefinition thereby avoiding a copy and allocation.
| in_that | An rvalue reference to a TextureDefinition 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 HPS::Definition.
| TextureDefinition& HPS::TextureDefinition::operator= | ( | TextureDefinition const & | in_that | ) |
Associate this TextureDefinition with the same underlying impl as the source TextureDefinition.
| in_that | The source TextureDefinition for the assignment. |
| TextureDefinition& HPS::TextureDefinition::operator= | ( | TextureDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TextureDefinition thereby avoiding a copy.
| in_that | An rvalue reference to a TextureDefinition to take the impl from. |
| void HPS::TextureDefinition::SetOptions | ( | TextureOptionsKit const & | in_options | ) |
Redefine the texture options for this TextureDefinition.
| in_options | The new texture options for this TextureDefinition. |
| void HPS::TextureDefinition::SetSource | ( | ImageDefinition const & | in_source | ) |
Redefine the image for this TextureDefinition.
| in_source | The new image for this TextureDefinition. |
| void HPS::TextureDefinition::ShowOptions | ( | TextureOptionsKit & | out_options | ) | const |
Show the texture options for this TextureDefinition.
| out_options | The texture options for this TextureDefinition. |
| void HPS::TextureDefinition::ShowSource | ( | ImageDefinition & | out_source | ) | const |
Show the image for this TextureDefinition.
| out_source | The image for this TextureDefinition. |