diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 00:53:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 00:53:58 +0100 |
commit | 5bfaf048e81900ffdc0bb2815f8465235c4462d5 (patch) | |
tree | 5264bf22976d9dd666fceb8dc7d337e9b71fa787 /cObject.h | |
parent | 4e59b62be595d9c0e1e95f51c6c4c25f37bdb783 (diff) | |
parent | c459b4901f3f453f83a93a38228e3241dd8190c2 (diff) | |
download | termgl-5bfaf048e81900ffdc0bb2815f8465235c4462d5.tar.gz |
Merge branch 'master' of https://gitlab.lrz.de/ge49jic/engine
Diffstat (limited to 'cObject.h')
-rw-r--r-- | cObject.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -12,14 +12,26 @@ struct sObject int sizeX; int sizeY; }; -/* cObject can be used standalone as well as inherited + +/** cObject can be used standalone as well as inherited * every cObject has its own framebuffer as well as position viariables to be moveable. -* cObject is used by cObjectHandler to manage all objects to be displayed +* cObject is used by cObjectHandler to manage all objects to be displayed. +* +* Minimal example for inheriting class +* +* +* class example : cObject +* { +* public: +* example() { setSize(10,5); } +* ~example() { destruct(); } +* }; +* */ class cObject : public cRender { public: - /* Sets the size to _sx x _sy + /** Sets the size to _sx x _sy */ cObject(int _sx, int _sy); |