Browse Source

Shapes: properly export all instances.

Not sure why this wasn't done already.
pull/280/head
Vladimír Vondruš 8 years ago
parent
commit
c9d621bed2
  1. 6
      src/Magnum/Shapes/Box.cpp
  2. 6
      src/Magnum/Shapes/Line.cpp
  3. 6
      src/Magnum/Shapes/Point.cpp

6
src/Magnum/Shapes/Box.cpp

@ -31,7 +31,9 @@ template<UnsignedInt dimensions> Box<dimensions> Box<dimensions>::transformed(co
return Box<dimensions>(matrix*_transformation); return Box<dimensions>(matrix*_transformation);
} }
template class Box<2>; #ifndef DOXYGEN_GENERATING_OUTPUT
template class Box<3>; template class MAGNUM_SHAPES_EXPORT Box<2>;
template class MAGNUM_SHAPES_EXPORT Box<3>;
#endif
}} }}

6
src/Magnum/Shapes/Line.cpp

@ -36,7 +36,9 @@ template<UnsignedInt dimensions> Line<dimensions> Line<dimensions>::transformed(
} }
/* Explicitly instantiate the templates */ /* Explicitly instantiate the templates */
template class Line<2>; #ifndef DOXYGEN_GENERATING_OUTPUT
template class Line<3>; template class MAGNUM_SHAPES_EXPORT Line<2>;
template class MAGNUM_SHAPES_EXPORT Line<3>;
#endif
}} }}

6
src/Magnum/Shapes/Point.cpp

@ -34,7 +34,9 @@ template<UnsignedInt dimensions> Point<dimensions> Point<dimensions>::transforme
return Point<dimensions>(matrix.transformPoint(_position)); return Point<dimensions>(matrix.transformPoint(_position));
} }
template class Point<2>; #ifndef DOXYGEN_GENERATING_OUTPUT
template class Point<3>; template class MAGNUM_SHAPES_EXPORT Point<2>;
template class MAGNUM_SHAPES_EXPORT Point<3>;
#endif
}} }}

Loading…
Cancel
Save