stdafx.h
资源名称:AirForce.rar [点击查看]
上传用户:kaiguan
上传日期:2007-10-28
资源大小:1074k
文件大小:1k
源码类别:
其他游戏
开发平台:
Visual C++
- //----------------------------------------------------------------------------
- // File: stdafx.h
- //
- // Copyright (C) Microsoft Corporation. All Rights Reserved.
- //-----------------------------------------------------------------------------
- #pragma once
- #ifndef AF_STDHEAD
- #define AF_STDHEAD
- #ifndef STRICT
- #define STRICT
- #endif
- #include <tchar.h>
- #include <Windows.h>
- #include <mmsystem.h>
- #include <windowsx.h>
- #include <basetsd.h>
- #include <cguid.h>
- #include <assert.h>
- #include <math.h>
- #include <stdarg.h>
- #include <stdio.h>
- #include <tchar.h>
- #include <d3d9.h>
- #include <d3dx9.h>
- #define DIRECTINPUT_VERSION 0x0800
- #include <dinput.h>
- #include <dmerror.h>
- #include <dmusicc.h>
- #include <dmusici.h>
- #include <dsound.h>
- #include <dxerr9.h>
- #define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
- #define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } }
- #define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
- class afApplication;
- extern afApplication* g_pApp; // Global access to the app
- // Simple function for generating random numbers
- inline FLOAT rnd( FLOAT low, FLOAT high )
- {
- return low + ( high - low ) * ( (FLOAT)rand() ) / RAND_MAX;
- }
- FLOAT rnd( FLOAT low=-1.0f, FLOAT high=1.0f );
- #endif;