mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
uninitialized variables-t3d
This commit is contained in:
parent
87603029db
commit
fabd5864fa
27 changed files with 102 additions and 23 deletions
|
|
@ -24,6 +24,23 @@
|
|||
#include "T3D/decal/decalInstance.h"
|
||||
#include "scene/sceneRenderState.h"
|
||||
|
||||
DecalInstance::DecalInstance()
|
||||
: mDataBlock(NULL),
|
||||
mRotAroundNormal(0.0f),
|
||||
mSize(0.0f),
|
||||
mCreateTime(0),
|
||||
mVisibility(1.0f),
|
||||
mLastAlpha(1.0f),
|
||||
mTextureRectIdx(0),
|
||||
mVerts(NULL),
|
||||
mIndices(NULL),
|
||||
mVertCount(0),
|
||||
mIndxCount(0),
|
||||
mFlags(0),
|
||||
mRenderPriority(0),
|
||||
mId(-1),
|
||||
mCustomTex(NULL)
|
||||
{}
|
||||
void DecalInstance::getWorldMatrix( MatrixF *outMat, bool flip )
|
||||
{
|
||||
outMat->setPosition( mPosition );
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class DecalInstance
|
|||
/// Calculates the size of this decal onscreen in pixels, used for LOD.
|
||||
F32 calcPixelSize( U32 viewportHeight, const Point3F &cameraPos, F32 worldToScreenScaleY ) const;
|
||||
|
||||
DecalInstance() : mId(-1) {}
|
||||
DecalInstance();
|
||||
};
|
||||
|
||||
#endif // _DECALINSTANCE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue