- included patch from willvarfar for animated attack particles (thanks will)

This commit is contained in:
Mark Vejvoda
2011-06-10 17:33:09 +00:00
parent ba3071c15b
commit 7c43628643
5 changed files with 18 additions and 12 deletions

View File

@@ -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);

View File

@@ -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);
};

View File

@@ -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