www.pudn.com > HeightMap_D3D.zip > Main.h


//----------------------------------------------------------------------------- 
// File: Main.h 
// Desc: The Main Program File. "My Second 3D Project". 
//----------------------------------------------------------------------------- 
#ifndef Main_h 
#define Main_h 
 
#include  
#include  
#include  
#include  
#include  
#include  
#include  
 
#include "cApp.h" 
 
#define WIN_WIDTH 1024 
#define WIN_HEIGHT 768 
 
#define SafeRelease(pInterface) if(pInterface != NULL) {pInterface->Release(); pInterface=NULL;} 
#define SafeDelete(pObject) if(pObject != NULL) {delete pObject; pObject=NULL;} 
 
//----------------------------------------------------------------------------- 
// Global variables 
//----------------------------------------------------------------------------- 
extern cApp* g_pApp; 
extern HWND hWnd; 
 
LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ); 
#endif