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 <windows.h>
#include <mmsystem.h>
#include <fstream.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>

#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