History

Moving the stage objects under the scene umbrella and creating a cear task to update the scene elements

samcake committed 9 years ago

Commit 9ae28611 parent 291960710 files · +139 −13Browse files

Showing the changes to libraries/render-utils/src/UpdateSceneTask.cpp (1 of 10 files). Show all

Unified · Split

libraries/render-utils/src/UpdateSceneTask.cpp+24−0
@@ -0,0 +1,24 @@
1+//
2+// UpdateSceneTask.cpp
3+// render-utils/src/
4+//
5+// Created by Sam Gateau on 6/21/2017.
6+// Copyright 2017 High Fidelity, Inc.
7+//
8+// Distributed under the Apache License, Version 2.0.
9+// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10+//
11+#include "UpdateSceneTask.h"
12+
13+#include <render/SceneTask.h>
14+#include "LightStage.h"
15+#include "BackgroundStage.h"
16+
17+void UpdateSceneTask::build(JobModel& task, const render::Varying& input, render::Varying& output) {
18+
19+ task.addJob<render::PerformSceneTransaction>("PerformSceneTransaction");
20+
21+ task.addJob<LightStageSetup>("LightStageSetup");
22+
23+}
24+