Michaël Lemaire
4a710c0977
Conflicts: src/interface/commandline/tests.cpp src/render/opengl/OpenGLPart.h src/render/opengl/OpenGLRenderer.cpp src/render/opengl/OpenGLRenderer.h src/render/opengl/OpenGLShaderProgram.h src/render/opengl/OpenGLSharedState.h src/render/software/SoftwareCanvasRenderer.h
18 lines
605 B
C++
18 lines
605 B
C++
#include "VegetationLayerDefinition.h"
|
|
|
|
#include "VegetationModelDefinition.h"
|
|
#include "VegetationPresenceDefinition.h"
|
|
|
|
VegetationLayerDefinition::VegetationLayerDefinition(DefinitionNode *parent, const string &name)
|
|
: DefinitionNode(parent, name, "vegetationlayer") {
|
|
model = new VegetationModelDefinition(this);
|
|
presence = new VegetationPresenceDefinition(this);
|
|
}
|
|
|
|
double VegetationLayerDefinition::getMaxHeight() const {
|
|
return presence->getMaxHeight();
|
|
}
|
|
|
|
void VegetationLayerDefinition::applyPreset(VegetationLayerPreset, RandomGenerator &random) {
|
|
model->randomize(random);
|
|
}
|