Fixed over 500 compile warnings. Mostly:
* Unused variables. * Missing newlines at ends of #included files. * signed int loop variables where the termination condition is an unsigned 'get number of' function. * 'NULL' used inappropriately for an integer or character constant (NULL is a pointer) * abstract base classes with no virtual destructor. * Floating point constants used to initialise integer variables.
This commit is contained in:
@@ -31,11 +31,6 @@ class BoxShape: public PolyhedralConvexShape
|
||||
|
||||
public:
|
||||
|
||||
virtual ~BoxShape()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SimdVector3 GetHalfExtents() const;
|
||||
//{ return m_boxHalfExtents1 * m_localScaling;}
|
||||
//const SimdVector3& GetHalfExtents() const{ return m_boxHalfExtents1;}
|
||||
@@ -265,3 +260,4 @@ public:
|
||||
};
|
||||
|
||||
#endif //OBB_BOX_MINKOWSKI_H
|
||||
|
||||
|
||||
@@ -25,11 +25,9 @@ subject to the following restrictions:
|
||||
///CollisionShape provides generic interface for collidable objects
|
||||
class CollisionShape
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
CollisionShape()
|
||||
:m_tempDebug(0)
|
||||
CollisionShape() :m_tempDebug(0)
|
||||
{
|
||||
}
|
||||
virtual ~CollisionShape()
|
||||
|
||||
@@ -15,11 +15,6 @@ subject to the following restrictions:
|
||||
|
||||
#include "ConvexShape.h"
|
||||
|
||||
ConvexShape::~ConvexShape()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ConvexShape::ConvexShape()
|
||||
:m_collisionMargin(CONVEX_DISTANCE_MARGIN),
|
||||
m_localScaling(1.f,1.f,1.f)
|
||||
|
||||
@@ -36,8 +36,6 @@ class ConvexShape : public CollisionShape
|
||||
public:
|
||||
ConvexShape();
|
||||
|
||||
virtual ~ConvexShape();
|
||||
|
||||
virtual SimdVector3 LocalGetSupportingVertex(const SimdVector3& vec)const;
|
||||
virtual SimdVector3 LocalGetSupportingVertexWithoutMargin(const SimdVector3& vec) const= 0;
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ public:
|
||||
|
||||
LocalSupportVertexCallback(const SimdVector3& supportVecLocal)
|
||||
: m_supportVertexLocal(0.f,0.f,0.f),
|
||||
m_supportVecLocal(supportVecLocal),
|
||||
m_maxDot(-1e30f)
|
||||
m_maxDot(-1e30f),
|
||||
m_supportVecLocal(supportVecLocal)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -72,7 +72,6 @@ public:
|
||||
SimdVector3 ConvexTriangleMeshShape::LocalGetSupportingVertexWithoutMargin(const SimdVector3& vec0)const
|
||||
{
|
||||
SimdVector3 supVec(0.f,0.f,0.f);
|
||||
SimdScalar newDot,maxDot = -1e30f;
|
||||
|
||||
SimdVector3 vec = vec0;
|
||||
SimdScalar lenSqr = vec.length2();
|
||||
@@ -95,7 +94,6 @@ SimdVector3 ConvexTriangleMeshShape::LocalGetSupportingVertexWithoutMargin(const
|
||||
|
||||
void ConvexTriangleMeshShape::BatchedUnitVectorGetSupportingVertexWithoutMargin(const SimdVector3* vectors,SimdVector3* supportVerticesOut,int numVectors) const
|
||||
{
|
||||
SimdScalar newDot;
|
||||
//use 'w' component of supportVerticesOut?
|
||||
{
|
||||
for (int i=0;i<numVectors;i++)
|
||||
|
||||
@@ -46,4 +46,6 @@ public:
|
||||
|
||||
|
||||
|
||||
#endif //CONVEX_TRIANGLEMESH_SHAPE_H
|
||||
#endif //CONVEX_TRIANGLEMESH_SHAPE_H
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class PolyhedralConvexShape : public ConvexShape
|
||||
public:
|
||||
|
||||
PolyhedralConvexShape();
|
||||
|
||||
|
||||
//brute force implementations
|
||||
virtual SimdVector3 LocalGetSupportingVertexWithoutMargin(const SimdVector3& vec)const;
|
||||
virtual void BatchedUnitVectorGetSupportingVertexWithoutMargin(const SimdVector3* vectors,SimdVector3* supportVerticesOut,int numVectors) const;
|
||||
|
||||
@@ -28,8 +28,8 @@ protected:
|
||||
SimdVector3 m_localAabbMax;
|
||||
|
||||
SimdVector3 m_planeNormal;
|
||||
SimdScalar m_planeConstant;
|
||||
SimdVector3 m_localScaling;
|
||||
SimdScalar m_planeConstant;
|
||||
|
||||
public:
|
||||
StaticPlaneShape(const SimdVector3& planeNormal,SimdScalar planeConstant);
|
||||
|
||||
@@ -33,8 +33,6 @@ void StridingMeshInterface::InternalProcessAllTriangles(InternalTriangleIndexCal
|
||||
int stride,numverts,numtriangles;
|
||||
int gfxindex;
|
||||
SimdVector3 triangle[3];
|
||||
int tempIndices[3] = {0,0,0};
|
||||
int graphicsindex=0;
|
||||
float* graphicsbase;
|
||||
|
||||
SimdVector3 meshScaling = getScaling();
|
||||
|
||||
Reference in New Issue
Block a user