00001 #ifndef __GXVERTEX_H
00002 #define __GXVERTEX_H
00003
00004
00005 #include "GXStandardDefines.h"
00006
00007
00008 struct GXVertex
00009 {
00010 D3DXVECTOR3 vPos;
00011 float fWeight[2];
00012 DWORD dwBoneIndices;
00013 D3DXVECTOR3 vNormal;
00014 DWORD dwColor;
00015 D3DXVECTOR2 vTextureCoords;
00016 };
00017
00018 inline void GXZeroVertex(GXVertex* pInOut)
00019 {
00020 assert(pInOut!=NULL);
00021 memset(pInOut, 0, sizeof(GXVertex));
00022 }
00023
00024
00025
00026
00027
00028 #define VERTEX_FVF (D3DFVF_XYZ | D3DFVF_NORMAL |D3DFVF_XYZB3 | D3DFVF_DIFFUSE | D3DFVF_TEX1)
00029
00030
00031 struct GXPointVertex
00032 {
00033 D3DXVECTOR3 vPos;
00034 float fPointSize;
00035 DWORD dwColor;
00036 };
00037
00038
00039
00040 #endif