mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 04:37:59 +02:00
Add basic render to zones
This commit is contained in:
parent
aa10dc3991
commit
34a39250f2
1 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
#include <DependencyManager.h>
|
#include <DependencyManager.h>
|
||||||
#include <GeometryCache.h>
|
#include <GeometryCache.h>
|
||||||
|
#include <PerfStat.h>
|
||||||
|
|
||||||
EntityItem* RenderableZoneEntityItem::factory(const EntityItemID& entityID, const EntityItemProperties& properties) {
|
EntityItem* RenderableZoneEntityItem::factory(const EntityItemID& entityID, const EntityItemProperties& properties) {
|
||||||
return new RenderableZoneEntityItem(entityID, properties);
|
return new RenderableZoneEntityItem(entityID, properties);
|
||||||
|
@ -76,7 +77,10 @@ void RenderableZoneEntityItem::initialSimulation() {
|
||||||
|
|
||||||
void RenderableZoneEntityItem::render(RenderArgs* args) {
|
void RenderableZoneEntityItem::render(RenderArgs* args) {
|
||||||
if (_drawZoneBoundaries) {
|
if (_drawZoneBoundaries) {
|
||||||
// TODO: Draw the zone boundaries...
|
if (_model->isActive()) {
|
||||||
|
PerformanceTimer perfTimer("zone->render");
|
||||||
|
_model->renderInScene(getLocalRenderAlpha(), args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue