From 2287e3d73effe17610b85cd25edbac6a8a7e29b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 2 Aug 2013 20:10:24 +0200 Subject: [PATCH] Doc++ --- doc/scenegraph.dox | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/scenegraph.dox b/doc/scenegraph.dox index 83cc9fe9e..3d59a8849 100644 --- a/doc/scenegraph.dox +++ b/doc/scenegraph.dox @@ -119,11 +119,12 @@ The object itself handles only parent/child relationship and transformation. To make the object renderable, animatable, add collision shape to it etc., you have to add a *feature* to it. -Each feature takes pointer to holder object in constructor, so adding a -feature to an object might look like this: +Each feature takes reference to holder object in constructor, so adding a +feature to an object might look just like this, as in some cases you don't even +need to keep the pointer to it: @code Object3D* o; -auto feature = new MyFeature(o); +new MyFeature(o); @endcode Features of an object can be accessed using Object::firstFeature() and