Бранимир Караџић 6 vuotta sitten
vanhempi
sitoutus
657bf4a54b
1 muutettua tiedostoa jossa 9 lisäystä ja 13 poistoa
  1. 9 13
      examples/29-debugdraw/debugdraw.cpp

+ 9 - 13
examples/29-debugdraw/debugdraw.cpp

@@ -733,19 +733,15 @@ void draw(DebugDrawEncoder& _dde, const Shape& _shape, const bx::Vec3 _pos)
 {
 {
 	switch (_shape.type)
 	switch (_shape.type)
 	{
 	{
-	case Shape::Type::Aabb:     _dde.draw(*reinterpret_cast<const Aabb     *>(_shape.data) ); break;
-	case Shape::Type::Capsule:  _dde.draw(*reinterpret_cast<const Capsule  *>(_shape.data) ); break;
-	case Shape::Type::Cone:     _dde.draw(*reinterpret_cast<const Cone     *>(_shape.data) ); break;
-	case Shape::Type::Cylinder: _dde.draw(*reinterpret_cast<const Cylinder *>(_shape.data) ); break;
-	case Shape::Type::Disk:     _dde.draw(*reinterpret_cast<const Disk     *>(_shape.data) ); break;
-	case Shape::Type::Obb:      _dde.draw(*reinterpret_cast<const Obb      *>(_shape.data) ); break;
-	case Shape::Type::Plane:
-		{
-			_dde.drawGrid(reinterpret_cast<const bx::Plane*>(_shape.data)->normal, _pos, 10, 0.3f);
-		}
-		break;
-	case Shape::Type::Sphere:   _dde.draw(*reinterpret_cast<const Sphere   *>(_shape.data) ); break;
-	case Shape::Type::Triangle: _dde.draw(*reinterpret_cast<const Triangle *>(_shape.data) ); break;
+	case Shape::Type::Aabb:     _dde.draw    (*reinterpret_cast<const Aabb     *>(_shape.data) ); break;
+	case Shape::Type::Capsule:  _dde.draw    (*reinterpret_cast<const Capsule  *>(_shape.data) ); break;
+	case Shape::Type::Cone:     _dde.draw    (*reinterpret_cast<const Cone     *>(_shape.data) ); break;
+	case Shape::Type::Cylinder: _dde.draw    (*reinterpret_cast<const Cylinder *>(_shape.data) ); break;
+	case Shape::Type::Disk:     _dde.draw    (*reinterpret_cast<const Disk     *>(_shape.data) ); break;
+	case Shape::Type::Obb:      _dde.draw    (*reinterpret_cast<const Obb      *>(_shape.data) ); break;
+	case Shape::Type::Plane:  { _dde.drawGrid( reinterpret_cast<const bx::Plane*>(_shape.data)->normal, _pos, 10, 0.3f); } break;
+	case Shape::Type::Sphere:   _dde.draw    (*reinterpret_cast<const Sphere   *>(_shape.data) ); break;
+	case Shape::Type::Triangle: _dde.draw    (*reinterpret_cast<const Triangle *>(_shape.data) ); break;
 	}
 	}
 }
 }