Browse Source

Shapes: documentation for adding new shapes.

It's a lot of steps to rediscover.
pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
8929f4c1ae
  1. 17
      src/Shapes/shapeImplementation.h

17
src/Shapes/shapeImplementation.h

@ -34,6 +34,23 @@
namespace Magnum { namespace Shapes { namespace Implementation { namespace Magnum { namespace Shapes { namespace Implementation {
/*
Adding new collision type:
1. Add the type into the 2D/3D enums below, pick new prime number and
preserve complexity ordering
2. Update debug output operators for changed enums
3. Add TypeOf struct specialization (either for both 2D/3D or for only one
of them)
4. Add the enum value to (documentation-only) enum in Composition
5. Update doc/shapes.dox with new type
Adding new collision detection implementation:
1. Update Implementation/CollisionDispatch.cpp with newly implemented
2D/3D pair
*/
/* Shape type for given dimension count */ /* Shape type for given dimension count */
template<UnsignedInt> struct ShapeDimensionTraits; template<UnsignedInt> struct ShapeDimensionTraits;

Loading…
Cancel
Save