www.pudn.com > snow.rar > drawMesh.h


#ifndef _DRAW 
#define _DRAW 
#include  
#include  
#include  
 
 
class DrawMesh 
{ 
 
public: 
 
	LPD3DXMESH              g_pMesh ;  
	D3DMATERIAL9*           g_pMeshMaterials ;  
	LPDIRECT3DTEXTURE9*     g_pMeshTextures ;  
	DWORD                   g_dwNumMaterials ;    
 
	HRESULT InitGeometry(LPDIRECT3DDEVICE9 g_pd3dDevice,char* strMeshName,char*strTexName); 
	HRESULT InitGeometry(LPDIRECT3DDEVICE9 g_pd3dDevice,char* strMeshName); 
	void Cleanup(); 
	void Render(LPDIRECT3DDEVICE9 g_pd3dDevice); 
    DrawMesh(); 
}; 
          
 
#endif