HeightmapTexture Class Reference
Texture to be used on heightmaps. More...
#include <HeightmapDescriptor.hh>
Public Member Functions | |
| HeightmapTexture () | |
| Constructor. | |
| HeightmapTexture (const HeightmapTexture &_texture) | |
| Copy constructor. | |
| HeightmapTexture (HeightmapTexture &&_texture) noexcept | |
| Move constructor. | |
| virtual | ~HeightmapTexture () |
| Destructor. | |
| std::string | Diffuse () const |
| Get the heightmap texture's diffuse map. | |
| std::string | Normal () const |
| Get the heightmap texture's normal map. | |
| HeightmapTexture & | operator= (const HeightmapTexture &_texture) |
| Copy Assignment operator. | |
| HeightmapTexture & | operator= (HeightmapTexture &&_texture) |
| Move assignment operator. | |
| void | SetDiffuse (const std::string &_diffuse) |
| Set the filename of the diffuse map. | |
| void | SetNormal (const std::string &_normal) |
| Set the filename of the normal map. | |
| void | SetSize (double _size) |
| Set the size of the texture in meters. | |
| double | Size () const |
| Get the heightmap texture's size. | |
Detailed Description
Texture to be used on heightmaps.
Constructor & Destructor Documentation
◆ HeightmapTexture() [1/3]
| HeightmapTexture | ( | ) |
Constructor.
◆ HeightmapTexture() [2/3]
| HeightmapTexture | ( | const HeightmapTexture & | _texture | ) |
Copy constructor.
- Parameters
-
[in] _texture HeightmapTexture to copy.
◆ HeightmapTexture() [3/3]
|
noexcept |
Move constructor.
- Parameters
-
[in] _texture HeightmapTexture to move.
◆ ~HeightmapTexture()
|
virtual |
Destructor.
Member Function Documentation
◆ Diffuse()
| std::string Diffuse | ( | ) | const |
Get the heightmap texture's diffuse map.
- Returns
- The diffuse map of the heightmap texture.
◆ Normal()
| std::string Normal | ( | ) | const |
Get the heightmap texture's normal map.
- Returns
- The normal map of the heightmap texture.
◆ operator=() [1/2]
| HeightmapTexture & operator= | ( | const HeightmapTexture & | _texture | ) |
Copy Assignment operator.
- Parameters
-
[in] _texture The heightmap texture to set values from.
- Returns
- *this
◆ operator=() [2/2]
| HeightmapTexture & operator= | ( | HeightmapTexture && | _texture | ) |
Move assignment operator.
- Parameters
-
[in] _texture Heightmap texture to move.
- Returns
- Reference to this.
◆ SetDiffuse()
| void SetDiffuse | ( | const std::string & | _diffuse | ) |
Set the filename of the diffuse map.
- Parameters
-
[in] _diffuse The diffuse map of the heightmap texture.
◆ SetNormal()
| void SetNormal | ( | const std::string & | _normal | ) |
Set the filename of the normal map.
- Parameters
-
[in] _normal The normal map of the heightmap texture.
◆ SetSize()
| void SetSize | ( | double | _size | ) |
Set the size of the texture in meters.
- Parameters
-
[in] _size The size of the texture in meters.
◆ Size()
| double Size | ( | ) | const |
Get the heightmap texture's size.
- Returns
- The size of the heightmap texture in meters.
The documentation for this class was generated from the following file: