www.pudn.com > SkyBox.rar > header.h


 
#pragma once 
 
#include  
#include  
 
#include  
#include  
 
#pragma comment(lib, "d3d9.lib") 
#pragma comment(lib, "d3dx9.lib") 
#pragma comment(lib, "winmm.lib") 
 
#define KEYDOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0) 
#define KEYUP(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1 ) 
 
#define DEL(p)	{ if(p) { delete (p); (p) = NULL;}} 
#define DELS(p)	{ if(p) { delete[] (p); (p) = NULL;}} 
#define REL(p)	{ if(p) { (p)->Release(); (p) = NULL;}}