Texture to be used on heightmaps. More...
#include <Heightmap.hh>
Public Member Functions | |
| HeightmapTexture () | |
| Constructor. 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... | |
| Errors | Load (sdf::ElementPtr _sdf, const ParserConfig &_config) |
| Load the heightmap texture geometry based on a element pointer. More... | |
| std::string | Normal () const |
| Get the heightmap texture's normal map. 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 _size) |
| 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::SDF_VERSION_NAMESPACE::HeightmapTexture::HeightmapTexture | ( | ) |
Constructor.
| std::string sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Diffuse | ( | ) | const |
Get the heightmap texture's diffuse map.
| sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Element | ( | ) | const |
| Errors sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Load | ( | ElementPtr | _sdf | ) |
| Errors sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Load | ( | sdf::ElementPtr | _sdf, |
| const ParserConfig & | _config | ||
| ) |
| std::string sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Normal | ( | ) | const |
Get the heightmap texture's normal map.
| void sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::SetDiffuse | ( | const std::string & | _diffuse | ) |
Set the filename of the diffuse map.
| [in] | _diffuse | The diffuse map of the heightmap texture. |
| void sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::SetNormal | ( | const std::string & | _normal | ) |
Set the filename of the normal map.
| [in] | _normal | The normal map of the heightmap texture. |
| void sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::SetSize | ( | double | _size | ) |
Set the size of the texture in meters.
| [in] | _size | The size of the texture in meters. |
| double sdf::SDF_VERSION_NAMESPACE::HeightmapTexture::Size | ( | ) | const |
Get the heightmap texture's size.