Particle.h
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:1k
- // Particle.h: interface for the CParticle class.
- //作者:吴雪平 2002-6-17日修改
- //粒子系统,实现爆炸、炊烟
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PARTICLE_H__75C8B7C1_DB9B_11D5_AD18_444553540000__INCLUDED_)
- #define AFX_PARTICLE_H__75C8B7C1_DB9B_11D5_AD18_444553540000__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "structdef.h"
- class CParticle
- {
- public:
- CParticle();
- virtual ~CParticle();
- bool InitParticle(int type,VERTEX startPos=VERTEX(0,0,0),unsigned int *texResource=NULL);
- void DrawParticles(VERTEX position=VERTEX(0,0,0));
- private:
- void DrawShotParticles();
- void DrawBulletParticles(VERTEX position);
- void DrawExpParticles();
- void DrawSmokeParticles();
- bool InitShotParticle();
- bool InitBulletParticle(VERTEX position);
- bool InitExpParticle();
- bool InitSmokeParticle();
- void ResetParticle(int ParticleID,VERTEX position);
- void ResetSmokeParticle(int ParticleID);
- PARTICLE *particle;
- int Type;
- float srccolor[27][3];
- int maxnum;
- int smokenum;
- int rocknum;
- static unsigned int *m_pTexResource;
- };
- #endif // !defined(AFX_PARTICLE_H__75C8B7C1_DB9B_11D5_AD18_444553540000__INCLUDED_)