mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Rename all member variables to follow the style guidelines (prefixed with the 'm') - class TSShapeLoader
This commit is contained in:
parent
9aeb4389f3
commit
1778a8d7f2
7 changed files with 284 additions and 284 deletions
|
|
@ -47,7 +47,7 @@ void AppMesh::computeBounds(Box3F& bounds)
|
|||
boneTransforms.setSize( mNodeIndex.size() );
|
||||
for (S32 iBone = 0; iBone < boneTransforms.size(); iBone++)
|
||||
{
|
||||
MatrixF nodeMat = mBones[iBone]->getNodeTransform( TSShapeLoader::DefaultTime );
|
||||
MatrixF nodeMat = mBones[iBone]->getNodeTransform( TSShapeLoader::smDefaultTime );
|
||||
TSShapeLoader::zapScale(nodeMat);
|
||||
boneTransforms[iBone].mul( nodeMat, mInitialTransforms[iBone] );
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ void AppMesh::computeBounds(Box3F& bounds)
|
|||
}
|
||||
else
|
||||
{
|
||||
MatrixF transform = getMeshTransform(TSShapeLoader::DefaultTime);
|
||||
MatrixF transform = getMeshTransform(TSShapeLoader::smDefaultTime);
|
||||
TSShapeLoader::zapScale(transform);
|
||||
|
||||
for (S32 iVert = 0; iVert < mPoints.size(); iVert++)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -81,31 +81,31 @@ protected:
|
|||
};
|
||||
|
||||
public:
|
||||
static const F32 DefaultTime;
|
||||
static const F64 MinFrameRate;
|
||||
static const F64 MaxFrameRate;
|
||||
static const F64 AppGroundFrameRate;
|
||||
static const F32 smDefaultTime;
|
||||
static const F64 smMinFrameRate;
|
||||
static const F64 smMaxFrameRate;
|
||||
static const F64 smAppGroundFrameRate;
|
||||
|
||||
protected:
|
||||
// Variables used during loading that must be held until the shape is deleted
|
||||
TSShape* shape;
|
||||
Vector<AppMesh*> appMeshes;
|
||||
TSShape* mShape;
|
||||
Vector<AppMesh*> mAppMeshes;
|
||||
|
||||
// Variables used during loading, but that can be discarded afterwards
|
||||
static Torque::Path shapePath;
|
||||
static Torque::Path smShapePath;
|
||||
|
||||
AppNode* boundsNode;
|
||||
Vector<AppNode*> appNodes; ///< Nodes in the loaded shape
|
||||
Vector<AppSequence*> appSequences;
|
||||
AppNode* mBoundsNode;
|
||||
Vector<AppNode*> mAppNodes; ///< Nodes in the loaded shape
|
||||
Vector<AppSequence*> mAppSequences;
|
||||
|
||||
Vector<Subshape*> subshapes;
|
||||
Vector<Subshape*> mSubShapes;
|
||||
|
||||
Vector<QuatF*> nodeRotCache;
|
||||
Vector<Point3F*> nodeTransCache;
|
||||
Vector<QuatF*> nodeScaleRotCache;
|
||||
Vector<Point3F*> nodeScaleCache;
|
||||
Vector<QuatF*> mNodeRotCache;
|
||||
Vector<Point3F*> mNodeTransCache;
|
||||
Vector<QuatF*> mNodeScaleRotCache;
|
||||
Vector<Point3F*> mNodeScaleCache;
|
||||
|
||||
Point3F shapeOffset; ///< Offset used to translate the shape origin
|
||||
Point3F mShapeOffset; ///< Offset used to translate the shape origin
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -170,10 +170,10 @@ protected:
|
|||
void install();
|
||||
|
||||
public:
|
||||
TSShapeLoader() : boundsNode(0) { }
|
||||
TSShapeLoader() : mBoundsNode(0) { }
|
||||
virtual ~TSShapeLoader();
|
||||
|
||||
static const Torque::Path& getShapePath() { return shapePath; }
|
||||
static const Torque::Path& getShapePath() { return smShapePath; }
|
||||
|
||||
static void zapScale(MatrixF& mat);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue