diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-06 21:30:57 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-06 21:30:57 +0100 |
commit | a472dc51a18ad16bd8c72337023a08251a5888a8 (patch) | |
tree | e9440f7c00fafdb7826b960e7cb4c59d4723546e /src/cObject.h | |
parent | f8e188f2e6db9049e0c8c4e905e58aaf66e3b6cb (diff) | |
download | termgl-a472dc51a18ad16bd8c72337023a08251a5888a8.tar.gz |
Updated Object writing to framebuffer
cObject now handles writing itself to the framebuffer with write()
instead of passing the cScreen pointer to cObjectHandler
Diffstat (limited to 'src/cObject.h')
-rw-r--r-- | src/cObject.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cObject.h b/src/cObject.h index 48e41a4..08594b3 100644 --- a/src/cObject.h +++ b/src/cObject.h @@ -49,9 +49,14 @@ public: void setPosition(int _x, int _y); /** Returns sObject with framebuffer and current position + * DEPRECATED */ sObject getObject(); + /** Writes object to framebuffer with offset _cameraPosition + */ + void write(cRender *_render, sPos _cameraPosition); + /** Called by cObjecthandler if cObject is clicked */ virtual void onClick(sPos _pos, unsigned int _button){} |