Texture to be used on heightmaps. More...
#include <Heightmap.hh>
Public Member Functions | |
HeightmapTexture () | |
Constructor. More... | |
HeightmapTexture (const HeightmapTexture &_texture) | |
Copy constructor. More... | |
HeightmapTexture (HeightmapTexture &&_texture) noexcept | |
Move constructor. More... | |
virtual | ~HeightmapTexture () |
Destructor. More... | |
std::string | Diffuse () const |
Get the heightmap texture's diffuse map. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
Errors | Load (ElementPtr _sdf) |
Load the heightmap texture geometry based on a element pointer. More... | |
std::string | Normal () const |
Get the heightmap texture's normal map. More... | |
HeightmapTexture & | operator= (HeightmapTexture &&_texture) |
Move assignment operator. More... | |
HeightmapTexture & | operator= (const HeightmapTexture &_texture) |
Copy Assignment operator. More... | |
void | SetDiffuse (const std::string &_diffuse) |
Set the filename of the diffuse map. More... | |
void | SetNormal (const std::string &_normal) |
Set the filename of the normal map. More... | |
void | SetSize (double _uri) |
Set the size of the texture in meters. More... | |
double | Size () const |
Get the heightmap texture's size. More... | |
Texture to be used on heightmaps.
sdf::v9::HeightmapTexture::HeightmapTexture | ( | ) |
Constructor.
sdf::v9::HeightmapTexture::HeightmapTexture | ( | const HeightmapTexture & | _texture | ) |
Copy constructor.
[in] | _texture | HeightmapTexture to copy. |
|
noexcept |
Move constructor.
[in] | _texture | HeightmapTexture to move. |
|
virtual |
Destructor.
std::string sdf::v9::HeightmapTexture::Diffuse | ( | ) | const |
Get the heightmap texture's diffuse map.
sdf::ElementPtr sdf::v9::HeightmapTexture::Element | ( | ) | const |
Errors sdf::v9::HeightmapTexture::Load | ( | ElementPtr | _sdf | ) |
std::string sdf::v9::HeightmapTexture::Normal | ( | ) | const |
Get the heightmap texture's normal map.
HeightmapTexture& sdf::v9::HeightmapTexture::operator= | ( | HeightmapTexture && | _texture | ) |
Move assignment operator.
[in] | _texture | Heightmap texture to move. |
HeightmapTexture& sdf::v9::HeightmapTexture::operator= | ( | const HeightmapTexture & | _texture | ) |
Copy Assignment operator.
[in] | _texture | The heightmap texture to set values from. |
void sdf::v9::HeightmapTexture::SetDiffuse | ( | const std::string & | _diffuse | ) |
Set the filename of the diffuse map.
[in] | _diffuse | The diffuse map of the heightmap texture. |
void sdf::v9::HeightmapTexture::SetNormal | ( | const std::string & | _normal | ) |
Set the filename of the normal map.
[in] | _normal | The normal map of the heightmap texture. |
void sdf::v9::HeightmapTexture::SetSize | ( | double | _uri | ) |
Set the size of the texture in meters.
[in] | _uri | The size of the texture in meters. |
double sdf::v9::HeightmapTexture::Size | ( | ) | const |
Get the heightmap texture's size.