heavy refactoring
This commit is contained in:
@@ -13,21 +13,14 @@ namespace Archimedes {
|
||||
|
||||
~Renderer() {}
|
||||
|
||||
void init() { r.init(); }
|
||||
bool init() { return r.init(); }
|
||||
|
||||
void render() {
|
||||
r.render(rc, w, h);
|
||||
}
|
||||
|
||||
std::list<renderCmd*>::iterator addRenderCmd(renderCmd* cmd) {
|
||||
|
||||
auto it = rc.end();
|
||||
rc.push_back(cmd);
|
||||
return it;
|
||||
}
|
||||
|
||||
void removeRenderCmd(std::list<renderCmd*>::iterator cmd) {
|
||||
rc.erase(cmd);
|
||||
std::list<renderCmd*>& getCmdList() {
|
||||
return rc;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user