This commit is contained in:
2021-03-07 12:20:00 +01:00
parent 2661d6ca76
commit fa10620901
8 changed files with 22 additions and 39 deletions
+3 -2
View File
@@ -16,8 +16,7 @@ class SDLPPSCOPE RenderObject {
public:
RenderObject( const std::shared_ptr< Renderer > &r ) : renderer( r ) {}
virtual ~RenderObject() {}
// TODO maybe do basic render() that all descandants can inherit?
virtual void render() = 0;
virtual void render();
virtual int leftmost() = 0;
virtual int topmost() = 0;
virtual int rightmost() = 0;
@@ -97,6 +96,8 @@ protected:
uint64_t scene_id = -1;
bool permanent = false;
bool is_static = true;
bool centerx = false;
SDL_Rect rect;
private:
void setSceneID( int id );