Example #1
0
void EditorLandscape::HeihghtmapUpdated(const DAVA::Rect &forRect)
{
    EditorLandscape *editorLandscape = dynamic_cast<EditorLandscape *>(nestedLandscape);
    if(editorLandscape)
    {
        editorLandscape->HeihghtmapUpdated(forRect);
    }
}
void LandscapesController::HeghtWasChanged(const DAVA::Rect &changedRect)
{
    landscapeRenderer->RebuildVertexes(changedRect);
    renderedHeightmap->HeghtWasChanged(changedRect);

    EditorLandscape *editorLandscape = dynamic_cast<EditorLandscape *>(currentLandscape);
    if(editorLandscape)
    {
        editorLandscape->HeihghtmapUpdated(changedRect);
    }
}