summaryrefslogtreecommitdiff
path: root/src/cObject.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 21:30:57 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-06 21:30:57 +0100
commita472dc51a18ad16bd8c72337023a08251a5888a8 (patch)
treee9440f7c00fafdb7826b960e7cb4c59d4723546e /src/cObject.h
parentf8e188f2e6db9049e0c8c4e905e58aaf66e3b6cb (diff)
downloadtermgl-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.h5
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){}