Spray.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // Spray.h: interface for the Spray class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SPRAY_H__052D80DA_89CE_408D_BEA7_F98E6694E271__INCLUDED_)
- #define AFX_SPRAY_H__052D80DA_89CE_408D_BEA7_F98E6694E271__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "NodeObject.h"
- struct PARTICLE
- {
- BOOL m_bSpark; // Sparks are less energetic particles that
- // are generated where/when the main particles
- // hit the ground
- D3DXVECTOR3 m_vPos; // Current position
- D3DXVECTOR3 m_vVel; // Current velocity
- D3DXVECTOR3 m_vPos0; // Initial position
- D3DXVECTOR3 m_vVel0; // Initial velocity
- FLOAT m_fTime0; // Time of creation
- D3DXCOLOR m_clrDiffuse; // Initial diffuse color
- D3DXCOLOR m_clrFade; // Faded diffuse color
- FLOAT m_fFade; // Fade progression
- PARTICLE* m_pNext; // Next particle in list
- }
- class Spray : public NodeObject
- {
- friend class TransitionController;
- friend class ShaderController;
- friend class FileController;
- friend class SceneTree;
- friend class Cloud;
- public:
- Spray(TCHAR name,float x=0,float y=0,float z=0);
- virtual ~Spray();
- private:
- number
- };
- #endif // !defined(AFX_SPRAY_H__052D80DA_89CE_408D_BEA7_F98E6694E271__INCLUDED_)