History

Working on adding rendering from the workload

samcake committed 8 years ago

Commit 9441bb41 parent 6d347cf4 files · +82 −4Browse files

Showing the changes to interface/src/workload/GameWorkload.cpp (1 of 4 files). Show all

Unified · Split

interface/src/workload/GameWorkload.cpp+32−0
@@ -0,0 +1,32 @@
1//
2// GameWorkload.cpp
3//
4// Created by Sam Gateau on 2/16/2018.
5// Copyright 2018 High Fidelity, Inc.
6//
7// Distributed under the Apache License, Version 2.0.
8// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9//
10#include "GameWorkload.h"
11
12
13GameWorkload::GameWorkload() {
14}
15
16GameWorkload::~GameWorkload() {
17 shutdown();
18}
19
20void GameWorkload::startup() {
21 _engine.reset(new workload::Engine());
22
23 _engine.addJob<GameSpaceToRender>();
24}
25
26void GameWorkload::shutdown() {
27 _engine.reset();
28}
29
30
31void GameSpaceToRender::run(const workload::WorkloadContextPointer& renderContext, Outputs& outputs) {
32}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t