comman.h
上传用户:henghua
上传日期:2007-11-14
资源大小:7655k
文件大小:1k
- #ifndef COMMAND_H
- #define COMMAND_H
- #include <d3dx9.h>
- #include "Configuration.h"
- #include "camera.h"
- #define MAX_LEVEL 5
- #define BASE_STRENGTH 7
- struct CUSTOMVERTEX
- {
- FLOAT x, y, z; // The untransformed, 3D position for the vertex
- DWORD color; // The vertex color
- };
- struct SNOWVERTEX
- {
- FLOAT x, y, z;
- FLOAT u, v;
- };
- // 灵活顶点格式
- #define D3DFVF_SURFACEVERTEX (D3DFVF_XYZ|D3DFVF_TEX1) //remove--〉skybox
- // **辅助数据类型** // remove--〉skybox
- struct SURFACEVERTEX // 顶点类型:位置,位移
- {
- D3DXVECTOR3 position;
- float displacement;
- };
- struct SEAVERTEX
- {
- float x,y,z;
- float nx,ny,nz;
- float tu,tv;
- };
- #define D3DFVF_SEAVERTEX (D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_TEX1)
- #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE)
- #define D3DFVF_SNOWVERTEX (D3DFVF_XYZ|D3DFVF_TEX1)
- #define D3DFVF_DISPLACEMENT (D3DFVF_DIFFUSE)
- #define D3DFVF_SURFACEVERTEX_AND_DISPLACEMENT (D3DFVF_XYZ|D3DFVF_DIFFUSE)
- #endif