mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
- included patch from willvarfar for animated attack particles (thanks will)
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
virtual void renderSystem(ParticleSystem *ps);
|
||||
virtual void renderSystemLine(ParticleSystem *ps);
|
||||
virtual void renderSystemLineAlpha(ParticleSystem *ps);
|
||||
virtual void renderSingleModel(AttackParticleSystem *ps, ModelRenderer *mr);
|
||||
virtual void renderModel(AttackParticleSystem *ps, ModelRenderer *mr);
|
||||
|
||||
protected:
|
||||
void renderBufferQuads(int quadCount);
|
||||
|
@@ -351,6 +351,7 @@ protected:
|
||||
float sizeNoEnergy;
|
||||
float gravity;
|
||||
|
||||
float tween;
|
||||
Vec3f direction;
|
||||
|
||||
public:
|
||||
@@ -369,6 +370,8 @@ public:
|
||||
void setGravity(float gravity) {this->gravity= gravity;}
|
||||
void setPrimitive(Primitive primitive) {this->primitive= primitive;}
|
||||
|
||||
float getTween() { return tween; } // 0.0 -> 1.0 for animation of model
|
||||
|
||||
static Primitive strToPrimitive(const string &str);
|
||||
};
|
||||
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
virtual void renderSystem(ParticleSystem *ps)=0;
|
||||
virtual void renderSystemLine(ParticleSystem *ps)=0;
|
||||
virtual void renderSystemLineAlpha(ParticleSystem *ps)=0;
|
||||
virtual void renderSingleModel(AttackParticleSystem *ps, ModelRenderer *mr)=0;
|
||||
virtual void renderModel(AttackParticleSystem *ps, ModelRenderer *mr)=0;
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user