Adding th etask class

This commit is contained in:
Sam Gateau 2015-05-21 17:12:01 -07:00
parent 3e6a28e534
commit bec8d1838c
3 changed files with 77 additions and 2 deletions

View file

@ -105,8 +105,6 @@ public:
}
};
class RenderArgs;
class Item {
public:
typedef std::vector<Item> Vector;

View 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

View 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