From 6bcf419d2e8f739b432d4790d1ba9d48ab65365b Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 18 Nov 2011 12:14:12 +0000 Subject: --- ARMFCaptureD3D/ARMFCaptureD3D.h | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 ARMFCaptureD3D/ARMFCaptureD3D.h (limited to 'ARMFCaptureD3D/ARMFCaptureD3D.h') diff --git a/ARMFCaptureD3D/ARMFCaptureD3D.h b/ARMFCaptureD3D/ARMFCaptureD3D.h new file mode 100644 index 0000000..35b2d6d --- /dev/null +++ b/ARMFCaptureD3D/ARMFCaptureD3D.h @@ -0,0 +1,52 @@ +////////////////////////////////////////////////////////////////////////// +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +////////////////////////////////////////////////////////////////////////// +#pragma once + +#include +#include +#include +#include +#ifdef DX9 +#include +#include +// include the Direct3D Library files +#pragma comment (lib, "d3d9.lib") +#else +#include +// include the Direct3D Library files +#pragma comment (lib, "d3d10.lib") +#endif + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +template void SafeRelease(T **ppT) +{ + if (*ppT) + { + (*ppT)->Release(); + *ppT = NULL; + } +} + + +#include "device.h" +#include "preview.h" + -- cgit v1.1