#include <hps.h>
Public Member Functions | |
CubeMapDefinition () | |
CubeMapDefinition (Definition const &in_that) | |
CubeMapDefinition (CubeMapDefinition const &in_that) | |
CubeMapDefinition & | operator= (CubeMapDefinition const &in_that) |
CubeMapDefinition (CubeMapDefinition &&in_that) | |
CubeMapDefinition & | operator= (CubeMapDefinition &&in_that) |
HPS::Type | ObjectType () const |
void | SetSource (ImageDefinition const &in_negative_z, ImageDefinition const &in_positive_z, ImageDefinition const &in_negative_x, ImageDefinition const &in_positive_x, ImageDefinition const &in_negative_y, ImageDefinition const &in_positive_y) |
void | ShowSource (ImageDefinition &out_negative_z, ImageDefinition &out_positive_z, ImageDefinition &out_negative_x, ImageDefinition &out_positive_x, ImageDefinition &out_negative_y, ImageDefinition &out_positive_y) const |
void | ShowSource (ImageDefinitionArray &out_image_sources) const |
void | SetOptions (TextureOptionsKit const &in_options) |
void | ShowOptions (TextureOptionsKit &out_options) const |
![]() | |
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 |
![]() | |
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 | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The CubeMapDefinition class is a smart pointer to a database object. It is a handle to a cube map defined within a portfolio.
HPS::CubeMapDefinition::CubeMapDefinition | ( | ) |
The default constructor creates an uninitialized CubeMapDefinition object. The Type() function will return Type::None.
HPS::CubeMapDefinition::CubeMapDefinition | ( | Definition const & | in_that | ) |
This constructor creates a CubeMapDefinition 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 cube map definition. Otherwise the copy will fail and the resulting CubeMapDefinition will be invalid.
in_that | The source Definition to copy. |
HPS::CubeMapDefinition::CubeMapDefinition | ( | CubeMapDefinition const & | in_that | ) |
The copy constructor creates a CubeMapDefinition object that shares the underlying smart-pointer of the source CubeMapDefinition.
in_that | The source CubeMapDefinition to copy. |
HPS::CubeMapDefinition::CubeMapDefinition | ( | CubeMapDefinition && | in_that | ) |
The move constructor creates a CubeMapDefinition by transferring the underlying impl of the rvalue reference to this CubeMapDefinition thereby avoiding a copy and allocation.
in_that | An rvalue reference to a CubeMapDefinition 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.
CubeMapDefinition& HPS::CubeMapDefinition::operator= | ( | CubeMapDefinition const & | in_that | ) |
Associate this CubeMapDefinition with the same underlying impl as the source CubeMapDefinition.
in_that | The source CubeMapDefinition for the assignment. |
CubeMapDefinition& HPS::CubeMapDefinition::operator= | ( | CubeMapDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CubeMapDefinition thereby avoiding a copy.
in_that | An rvalue reference to a CubeMapDefinition to take the impl from. |
void HPS::CubeMapDefinition::SetOptions | ( | TextureOptionsKit const & | in_options | ) |
Redefine the texture options for this CubeMapDefinition.
in_options | The new texture options for this CubeMapDefinition. |
void HPS::CubeMapDefinition::SetSource | ( | ImageDefinition const & | in_negative_z, |
ImageDefinition const & | in_positive_z, | ||
ImageDefinition const & | in_negative_x, | ||
ImageDefinition const & | in_positive_x, | ||
ImageDefinition const & | in_negative_y, | ||
ImageDefinition const & | in_positive_y | ||
) |
Redefine the images for this CubeMapDefinition.
in_negative_z | The new image for the negative z-axis. |
in_positive_z | The new image for the positive z-axis. |
in_negative_x | The new image for the negative x-axis. |
in_positive_x | The new image for the positive x-axis. |
in_negative_y | The new image for the negative y-axis. |
in_positive_y | The new image for the positive y-axis. |
void HPS::CubeMapDefinition::ShowOptions | ( | TextureOptionsKit & | out_options | ) | const |
Show the texture options for this CubeMapDefinition.
out_options | The texture options for this CubeMapDefinition. |
void HPS::CubeMapDefinition::ShowSource | ( | ImageDefinition & | out_negative_z, |
ImageDefinition & | out_positive_z, | ||
ImageDefinition & | out_negative_x, | ||
ImageDefinition & | out_positive_x, | ||
ImageDefinition & | out_negative_y, | ||
ImageDefinition & | out_positive_y | ||
) | const |
Show the images for this CubeMapDefinition.
out_negative_z | The image for the negative z-axis. |
out_positive_z | The image for the positive z-axis. |
out_negative_x | The image for the negative x-axis. |
out_positive_x | The image for the positive x-axis. |
out_negative_y | The image for the negative y-axis. |
out_positive_y | The image for the positive y-axis. |
void HPS::CubeMapDefinition::ShowSource | ( | ImageDefinitionArray & | out_image_sources | ) | const |
Show the images for this CubeMapDefinition.
out_image_sources | The source images packed as: negative z-axis, positive z-axis, negative x-axis, positive x-axis, negative y-axis, positive y-axis. |