start template refactor

This commit is contained in:
2026-02-07 11:45:43 -06:00
parent 8b0192c9b8
commit 9a89ab3bbc
8 changed files with 475 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#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