mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Replaced StringTable->insert("") with StringTable->EmptyString()
This commit is contained in:
parent
bcc5459818
commit
27e2871b01
33 changed files with 304 additions and 304 deletions
|
|
@ -64,16 +64,16 @@
|
|||
class fxFoliageItem
|
||||
{
|
||||
public:
|
||||
MatrixF Transform;
|
||||
F32 Width;
|
||||
F32 Height;
|
||||
Box3F FoliageBox;
|
||||
bool Flipped;
|
||||
MatrixF Transform;
|
||||
F32 Width;
|
||||
F32 Height;
|
||||
Box3F FoliageBox;
|
||||
bool Flipped;
|
||||
F32 SwayPhase;
|
||||
F32 SwayTimeRatio;
|
||||
F32 LightPhase;
|
||||
F32 LightPhase;
|
||||
F32 LightTimeRatio;
|
||||
U32 LastFrameSerialID;
|
||||
U32 LastFrameSerialID;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
@ -104,9 +104,9 @@ public:
|
|||
Box3F QuadrantBox;
|
||||
fxFoliageQuadrantNode* QuadrantChildNode[4];
|
||||
Vector<fxFoliageItem*> RenderList;
|
||||
// Used in DrawIndexPrimitive call.
|
||||
U32 startIndex;
|
||||
U32 primitiveCount;
|
||||
// Used in DrawIndexPrimitive call.
|
||||
U32 startIndex;
|
||||
U32 primitiveCount;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -152,7 +152,7 @@ protected:
|
|||
|
||||
void CreateFoliage(void);
|
||||
void DestroyFoliage(void);
|
||||
void DestroyFoliageItems();
|
||||
void DestroyFoliageItems();
|
||||
|
||||
|
||||
void SyncFoliageReplicators(void);
|
||||
|
|
@ -172,11 +172,11 @@ protected:
|
|||
Vector<fxFoliageItem*> mReplicatedFoliage;
|
||||
fxFoliageRenderList mFrustumRenderSet;
|
||||
|
||||
GFXVertexBufferHandle<GFXVertexFoliage> mVertexBuffer;
|
||||
GFXPrimitiveBufferHandle mPrimBuffer;
|
||||
GFXVertexBufferHandle<GFXVertexFoliage> mVertexBuffer;
|
||||
GFXPrimitiveBufferHandle mPrimBuffer;
|
||||
GFXShaderRef mShader;
|
||||
ShaderData* mShaderData;
|
||||
GBitmap* mAlphaLookup;
|
||||
GBitmap* mAlphaLookup;
|
||||
|
||||
MRandomLCG RandomGen;
|
||||
F32 mFadeInGradient;
|
||||
|
|
@ -193,8 +193,8 @@ protected:
|
|||
U32 mNextAllocatedNodeIdx; // Next Allocated Node Index.
|
||||
U32 mBillboardsAcquired; // Billboards Acquired.
|
||||
|
||||
// Used for alpha lookup in the pixel shader
|
||||
GFXTexHandle mAlphaTexture;
|
||||
// Used for alpha lookup in the pixel shader
|
||||
GFXTexHandle mAlphaTexture;
|
||||
|
||||
GFXStateBlockRef mPlacementSB;
|
||||
GFXStateBlockRef mRenderSB;
|
||||
|
|
@ -223,15 +223,15 @@ protected:
|
|||
|
||||
|
||||
bool mDirty;
|
||||
|
||||
|
||||
void SetupShader();
|
||||
void SetupBuffers();
|
||||
void SetupBuffers();
|
||||
void renderObject(ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance*);
|
||||
void renderBuffers(SceneRenderState* state);
|
||||
void renderArc(const F32 fRadiusX, const F32 fRadiusY);
|
||||
void renderPlacementArea(const F32 ElapsedTime);
|
||||
void renderQuad(fxFoliageQuadrantNode* quadNode, const MatrixF& RenderTransform, const bool UseDebug);
|
||||
void computeAlphaTex();
|
||||
void renderBuffers(SceneRenderState* state);
|
||||
void renderArc(const F32 fRadiusX, const F32 fRadiusY);
|
||||
void renderPlacementArea(const F32 ElapsedTime);
|
||||
void renderQuad(fxFoliageQuadrantNode* quadNode, const MatrixF& RenderTransform, const bool UseDebug);
|
||||
void computeAlphaTex();
|
||||
public:
|
||||
fxFoliageReplicator();
|
||||
~fxFoliageReplicator();
|
||||
|
|
@ -325,7 +325,7 @@ public:
|
|||
mUseDebugInfo = false;
|
||||
mDebugBoxHeight = 1.0f;
|
||||
mSeed = 1376312589;
|
||||
mFoliageFile = StringTable->insert("");
|
||||
mFoliageFile = StringTable->EmptyString();
|
||||
mFoliageTexture = GFXTexHandle();
|
||||
mFoliageCount = 10;
|
||||
mFoliageRetries = 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue