2013-11-16 18:12:42 +00:00
|
|
|
#ifndef TEXTURESDEFINITION_H
|
|
|
|
#define TEXTURESDEFINITION_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
#include "Layers.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
class DEFINITIONSHARED_EXPORT TexturesDefinition : public Layers {
|
|
|
|
public:
|
2015-08-12 20:21:10 +00:00
|
|
|
TexturesDefinition(DefinitionNode *parent);
|
2013-11-16 18:12:42 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
inline TextureLayerDefinition *getTextureLayer(int position) const {
|
|
|
|
return (TextureLayerDefinition *)getLayer(position);
|
|
|
|
}
|
2013-11-16 18:12:42 +00:00
|
|
|
|
2016-01-12 18:50:56 +00:00
|
|
|
typedef enum { TEXTURES_PRESET_FULL, TEXTURES_PRESET_IRELAND, TEXTURES_PRESET_ALPS } TexturesPreset;
|
2015-12-10 18:40:39 +00:00
|
|
|
void applyPreset(TexturesPreset preset, RandomGenerator &random = RandomGeneratorDefault);
|
2013-12-29 13:14:49 +00:00
|
|
|
|
|
|
|
double getMaximalDisplacement();
|
2013-11-16 18:12:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TEXTURESDEFINITION_H
|