mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 17:23:15 +02:00
Adding th etask class
This commit is contained in:
parent
3e6a28e534
commit
bec8d1838c
3 changed files with 77 additions and 2 deletions
|
@ -105,8 +105,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class RenderArgs;
|
||||
|
||||
class Item {
|
||||
public:
|
||||
typedef std::vector<Item> Vector;
|
||||
|
|
31
libraries/render/src/render/Task.cpp
Executable file
31
libraries/render/src/render/Task.cpp
Executable file
|
@ -0,0 +1,31 @@
|
|||
//
|
||||
// Task.cpp
|
||||
// render/src/render
|
||||
//
|
||||
// Created by Sam Gateau on 5/21/15.
|
||||
// Copyright 20154 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 "Task.h"
|
||||
|
||||
using namespace render;
|
||||
|
||||
|
||||
DrawSceneTask::~DrawSceneTask() {
|
||||
}
|
||||
|
||||
void DrawSceneTask::setup(RenderArgs* args) {
|
||||
};
|
||||
|
||||
void DrawSceneTask::run() {
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // hifi_render_Task_h
|
46
libraries/render/src/render/Task.h
Executable file
46
libraries/render/src/render/Task.h
Executable file
|
@ -0,0 +1,46 @@
|
|||
//
|
||||
// Task.h
|
||||
// render/src/render
|
||||
//
|
||||
// Created by Sam Gateau on 5/21/15.
|
||||
// Copyright 20154 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
|
||||
//
|
||||
|
||||
#ifndef hifi_render_Task_h
|
||||
#define hifi_render_Task_h
|
||||
|
||||
#include "Scene.h"
|
||||
|
||||
namespace render {
|
||||
|
||||
|
||||
|
||||
class Task {
|
||||
public:
|
||||
Task() {}
|
||||
~Task() {}
|
||||
|
||||
void run() {}
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
class DrawSceneTask : public Task {
|
||||
public:
|
||||
|
||||
DrawSceneTask() : Task() {}
|
||||
~DrawSceneTask();
|
||||
|
||||
void setup(RenderArgs* args);
|
||||
void run();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // hifi_render_Task_h
|
Loading…
Reference in a new issue