decaleffect.h
来自「国外网游源码....除工具源码缺少之外,其余程序都全...至于,什么游戏,因为国」· C头文件 代码 · 共 57 行
H
57 行
// DecalEffect.h: interface for the CDecalEffect class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DECALEFFECT_H__DA49C2F6_77C8_47AC_985D_2720B4BDB746__INCLUDED_)
#define AFX_DECALEFFECT_H__DA49C2F6_77C8_47AC_985D_2720B4BDB746__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct
{
D3DXVECTOR3 p; // Vertex position
DWORD color; // Vertex color
FLOAT tu, tv; // Vertex texture coordinates
} VERTEX_DECAL;
#define D3DFVF_DECAL (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1)
class CFootMark : public CBaseEmitter
{
public:
CFootMark();
virtual ~CFootMark();
public: // 滚玿 沏记..
HRESULT Create();
HRESULT Render();
HRESULT Update( float fElapsedTime );
HRESULT RestoreDeviceObjects();
void InvalidateDeviceObjects();
public:
HRESULT LoadTexture(const char *strTextureFilename);
public:
// particle system attributes
D3DXVECTOR3 m_vPos; // position of emitter
D3DXVECTOR3 m_vDir; // position of emitter
float m_fEmitterSize; // position of emitter
float m_fLifeTime; // position of emitter
private:
protected:
LPDIRECT3DVERTEXBUFFER9 m_vbDecal;
LPDIRECT3DINDEXBUFFER9 m_ibDecal;
LPDIRECT3DTEXTURE9 m_pTexDecal;
// CRecyclingArrayDynEx<EFFECTPARTICLE> m_ListParticles;
};
#endif // !defined(AFX_DECALEFFECT_H__DA49C2F6_77C8_47AC_985D_2720B4BDB746__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?