37 lines
573 B
C++
37 lines
573 B
C++
#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
|