aboutsummaryrefslogtreecommitdiff
path: root/cObject.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-02-10 00:53:58 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-02-10 00:53:58 +0100
commit5bfaf048e81900ffdc0bb2815f8465235c4462d5 (patch)
tree5264bf22976d9dd666fceb8dc7d337e9b71fa787 /cObject.h
parent4e59b62be595d9c0e1e95f51c6c4c25f37bdb783 (diff)
parentc459b4901f3f453f83a93a38228e3241dd8190c2 (diff)
downloadtermgl-5bfaf048e81900ffdc0bb2815f8465235c4462d5.tar.gz
Merge branch 'master' of https://gitlab.lrz.de/ge49jic/engine
Diffstat (limited to 'cObject.h')
-rw-r--r--cObject.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/cObject.h b/cObject.h
index 87d0205..d0947da 100644
--- a/cObject.h
+++ b/cObject.h
@@ -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);