Browse Source

Doc++

pull/277/head
Vladimír Vondruš 13 years ago
parent
commit
2287e3d73e
  1. 7
      doc/scenegraph.dox

7
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 To make the object renderable, animatable, add collision shape to it etc., you
have to add a *feature* to it. have to add a *feature* to it.
Each feature takes pointer to holder object in constructor, so adding a Each feature takes reference to holder object in constructor, so adding a
feature to an object might look like this: 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 @code
Object3D* o; Object3D* o;
auto feature = new MyFeature(o); new MyFeature(o);
@endcode @endcode
Features of an object can be accessed using Object::firstFeature() and Features of an object can be accessed using Object::firstFeature() and

Loading…
Cancel
Save