work on utils
This commit is contained in:
0
utils/Renderer/Renderer.cpp
Normal file
0
utils/Renderer/Renderer.cpp
Normal file
@@ -1,3 +1,19 @@
|
||||
#include "Archimedes.h"
|
||||
|
||||
namespace Archimedes {
|
||||
class Renderer {
|
||||
|
||||
public:
|
||||
typedef void renderCmd();
|
||||
|
||||
~Renderer() {}
|
||||
|
||||
void render();
|
||||
|
||||
void addRenderCmd(renderCmd* cmd) { rc.push_back(cmd); }
|
||||
|
||||
private:
|
||||
std::list<renderCmd*> rc;
|
||||
};
|
||||
}
|
||||
|
||||
class Renderer {};
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#include "Renderer/Renderer.h"
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
class RendererOpenGL {
|
||||
|
||||
public:
|
||||
RendererOpenGL();
|
||||
~RendererOpenGL();
|
||||
|
||||
void render();
|
||||
};
|
||||
|
||||
typedef RendererOpenGL RendererImpl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user