mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
cleaning up *Shape constructors
--HG-- branch : box2d-update
This commit is contained in:
@@ -34,10 +34,8 @@ namespace physics
|
|||||||
namespace box2d
|
namespace box2d
|
||||||
{
|
{
|
||||||
ChainShape::ChainShape(b2ChainShape * c, bool loop)
|
ChainShape::ChainShape(b2ChainShape * c, bool loop)
|
||||||
: loop(loop)
|
: Shape(c), loop(loop)
|
||||||
{
|
{
|
||||||
shape = c;
|
|
||||||
Memoizer::add(shape, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ChainShape::~ChainShape()
|
ChainShape::~ChainShape()
|
||||||
|
|||||||
@@ -33,9 +33,8 @@ namespace physics
|
|||||||
namespace box2d
|
namespace box2d
|
||||||
{
|
{
|
||||||
CircleShape::CircleShape(b2CircleShape * c)
|
CircleShape::CircleShape(b2CircleShape * c)
|
||||||
|
: Shape(c)
|
||||||
{
|
{
|
||||||
shape = c;
|
|
||||||
Memoizer::add(shape, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CircleShape::~CircleShape()
|
CircleShape::~CircleShape()
|
||||||
|
|||||||
@@ -33,9 +33,8 @@ namespace physics
|
|||||||
namespace box2d
|
namespace box2d
|
||||||
{
|
{
|
||||||
EdgeShape::EdgeShape(b2EdgeShape * e)
|
EdgeShape::EdgeShape(b2EdgeShape * e)
|
||||||
|
: Shape(e)
|
||||||
{
|
{
|
||||||
shape = e;
|
|
||||||
Memoizer::add(shape, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EdgeShape::~EdgeShape()
|
EdgeShape::~EdgeShape()
|
||||||
|
|||||||
@@ -34,9 +34,8 @@ namespace physics
|
|||||||
namespace box2d
|
namespace box2d
|
||||||
{
|
{
|
||||||
PolygonShape::PolygonShape(b2PolygonShape * p)
|
PolygonShape::PolygonShape(b2PolygonShape * p)
|
||||||
|
: Shape(p)
|
||||||
{
|
{
|
||||||
shape = p;
|
|
||||||
Memoizer::add(shape, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PolygonShape::~PolygonShape()
|
PolygonShape::~PolygonShape()
|
||||||
|
|||||||
Reference in New Issue
Block a user