start template refactor
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
#ifndef RENDERER_IMPL
|
||||
#define RENDERER_IMPL
|
||||
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
template <typename T>
|
||||
class RendererImpl {
|
||||
|
||||
public:
|
||||
typedef void renderCmd();
|
||||
|
||||
RendererImpl() {};
|
||||
|
||||
~RendererImpl() {};
|
||||
|
||||
bool init(void* p) {
|
||||
return false;
|
||||
};
|
||||
|
||||
void render(std::list<std::function<void()>> cmdList, int& w, int& h) {
|
||||
|
||||
|
||||
for(auto f : cmdList)
|
||||
f();
|
||||
}
|
||||
|
||||
private:
|
||||
T rendererImpl;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user