//-------------------------------------------------------------------------------------- // File: DxStdAfx.h // // Desc: Standard includes and precompiled headers for DXUT // // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #pragma once #ifndef DXSDK_STDAFX_H #define DXSDK_STDAFX_H #include #include #include #include #include // for InitCommonControls() #include // for ExtractIcon() #include // for placement new #include #include #include #include // Direct3D includes #include #include #include #define STRSAFE_NO_DEPRECATE #include #include "DXUTmisc.h" #include "DXUTgui.h" #include "DXUTsettingsDlg.h" #ifndef SAFE_DELETE #define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } } #endif #ifndef SAFE_DELETE_ARRAY #define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } } #endif #ifndef SAFE_RELEASE #define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } } #endif #endif // !defined(DXSDK_STDAFX_H)