mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 22:07:35 +02:00
27 lines
752 B
C++
27 lines
752 B
C++
//
|
|
// ZoneRenderer.cpp
|
|
// render/src/render-utils
|
|
//
|
|
// Created by Sam Gateau on 4/4/2017.
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#include "ZoneRenderer.h"
|
|
|
|
#include <render/FilterTask.h>
|
|
#include <render/DrawTask.h>
|
|
|
|
using namespace render;
|
|
|
|
const Selection::Name ZoneRendererTask::ZONES_SELECTION { "RankedZones" };
|
|
|
|
void ZoneRendererTask::build(JobModel& task, const Varying& input, Varying& ouput) {
|
|
|
|
const auto zoneItems = task.addJob<render::SelectSortItems>("FilterZones", input, ZONES_SELECTION.c_str());
|
|
|
|
// just draw them...
|
|
task.addJob<DrawBounds>("DrawZones", zoneItems);
|
|
}
|
|
|