Bullet.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- //-----------------------------------------------------------------------------
- // File: Bullet.h
- //
- // Copyright (C) Microsoft Corporation. All Rights Reserved.
- //-----------------------------------------------------------------------------
- #pragma once
- class CBullet : public C3DDisplayObject
- {
- public:
- CBullet();
- virtual ~CBullet(void);
- public:
- virtual HRESULT OneTimeSceneInit( CBulletParameter* pBulletParam, const D3DXVECTOR3& vStartPos, const D3DXMATRIX* pmOrientation, const D3DXVECTOR3& vVel );
- virtual HRESULT FrameMove( const float fElapsedTime );
- virtual HRESULT GetArtificialForces( const float fElapsedTime );
- virtual HRESULT Render( const float fWrapOffsetX, const float fWrapOffsetZ, DWORD* pdwNumVerts );
- public:
- CBulletParameter* m_pBulletParam;
- float m_fExpireCountdown;
- D3DMATERIAL9 m_mtrl;
- };