Simple pass over the codebase to standardize the platform types.

This commit is contained in:
cpusci 2013-08-04 16:26:01 -05:00
parent c75d6feb20
commit 4c35fd37af
189 changed files with 824 additions and 824 deletions

View file

@ -61,7 +61,7 @@ bool Box3F::collideLine(const Point3F& start, const Point3F& end, F32* t, Point3
static const Point3F na[3] = { Point3F(1.0f, 0.0f, 0.0f), Point3F(0.0f, 1.0f, 0.0f), Point3F(0.0f, 0.0f, 1.0f) };
Point3F finalNormal(0.0f, 0.0f, 0.0f);
for (int i = 0; i < 3; i++) {
for (S32 i = 0; i < 3; i++) {
bool n_neg = false;
if (si[i] < ei[i]) {
if (si[i] > bmax[i] || ei[i] < bmin[i])

View file

@ -229,7 +229,7 @@ struct PolyhedronUnmanagedVectorData : public PolyhedronData
};
/// Polyhedron data stored in fixed size arrays.
template< int NUM_PLANES, int NUM_POINTS, int NUM_EDGES >
template< S32 NUM_PLANES, S32 NUM_POINTS, S32 NUM_EDGES >
struct PolyhedronFixedVectorData : public PolyhedronData
{
typedef FixedSizeVector< PlaneF, NUM_PLANES > PlaneListType;
@ -479,7 +479,7 @@ inline PolyhedronVectorData::operator AnyPolyhedron() const
//-----------------------------------------------------------------------------
template< int NUM_PLANES, int NUM_POINTS, int NUM_EDGES >
template< S32 NUM_PLANES, S32 NUM_POINTS, S32 NUM_EDGES >
inline PolyhedronFixedVectorData< NUM_PLANES, NUM_POINTS, NUM_EDGES >::operator AnyPolyhedron() const
{
return AnyPolyhedron(

View file

@ -52,7 +52,7 @@ void QuadPatch::submitControlPoints( SplCtrlPts &points )
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void QuadPatch::setControlPoint( Point3F &point, int index )
void QuadPatch::setControlPoint( Point3F &point, S32 index )
{
( (SplCtrlPts*) getControlPoints() )->setPoint( point, index );
calcABC( getControlPoint(0) );

View file

@ -51,7 +51,7 @@ public:
virtual void calc( F32 t, Point3F &result );
virtual void calc( Point3F *points, F32 t, Point3F &result );
virtual void setControlPoint( Point3F &point, int index );
virtual void setControlPoint( Point3F &point, S32 index );
virtual void submitControlPoints( SplCtrlPts &points );

View file

@ -55,8 +55,8 @@ public:
QuatF& set( const AngAxisF & a );
QuatF& set( const EulerF & e );
int operator ==( const QuatF & c ) const;
int operator !=( const QuatF & c ) const;
S32 operator ==( const QuatF & c ) const;
S32 operator !=( const QuatF & c ) const;
QuatF& operator *=( const QuatF & c );
QuatF& operator /=( const QuatF & c );
QuatF& operator +=( const QuatF & c );
@ -75,7 +75,7 @@ public:
QuatF& normalize();
QuatF& inverse();
QuatF& identity();
int isIdentity() const;
S32 isIdentity() const;
QuatF& slerp( const QuatF & q, F32 t );
QuatF& extrapolate( const QuatF & q1, const QuatF & q2, F32 t );
QuatF& interpolate( const QuatF & q1, const QuatF & q2, F32 t );

View file

@ -68,7 +68,7 @@ void SplCtrlPts::submitPoints( Point3F *pts, U32 num )
{
mPoints.clear();
for( int i=0; i<num; i++ )
for( S32 i=0; i<num; i++ )
{
mPoints.push_back( pts[i] );
}
@ -89,7 +89,7 @@ SplinePatch::SplinePatch()
// to re-calc any pre-calculated data it may be using from the submitted control
// points.
//------------------------------------------------------------------------------
void SplinePatch::setControlPoint( Point3F &point, int index )
void SplinePatch::setControlPoint( Point3F &point, S32 index )
{
mControlPoints.setPoint( point, index );
}

View file

@ -110,7 +110,7 @@ public:
const Point3F * getControlPoint( U32 index ){ return mControlPoints.getPoint( index ); }
// virtuals
virtual void setControlPoint( Point3F &point, int index );
virtual void setControlPoint( Point3F &point, S32 index );
/// If you have a preconstructed "SplCtrlPts" class, submit it with this function.
/// @see SplCtrlPts
virtual void submitControlPoints( SplCtrlPts &points ){ mControlPoints = points; }

View file

@ -819,7 +819,7 @@ U32 greatestCommonDivisor( U32 u, U32 v )
{
// http://en.wikipedia.org/wiki/Binary_GCD_algorithm
int shift;
S32 shift;
/* GCD(0,x) := x */
if (u == 0 || v == 0)
@ -845,7 +845,7 @@ U32 greatestCommonDivisor( U32 u, U32 v )
if (u < v) {
v -= u;
} else {
unsigned int diff = u - v;
U32 diff = u - v;
u = v;
v = diff;
}
@ -1086,7 +1086,7 @@ struct QuadSortPoint
};
// Used by sortQuadWindingOrder.
int QSORT_CALLBACK cmpAngleAscending( const void *a, const void *b )
S32 QSORT_CALLBACK cmpAngleAscending( const void *a, const void *b )
{
const QuadSortPoint *p0 = (const QuadSortPoint*)a;
const QuadSortPoint *p1 = (const QuadSortPoint*)b;
@ -1102,7 +1102,7 @@ int QSORT_CALLBACK cmpAngleAscending( const void *a, const void *b )
}
// Used by sortQuadWindingOrder.
int QSORT_CALLBACK cmpAngleDescending( const void *a, const void *b )
S32 QSORT_CALLBACK cmpAngleDescending( const void *a, const void *b )
{
const QuadSortPoint *p0 = (const QuadSortPoint*)a;
const QuadSortPoint *p1 = (const QuadSortPoint*)b;