From 72b21c69e32c73abf3a18b0e962746e64faebba4 Mon Sep 17 00:00:00 2001 From: Jason Maskell Date: Thu, 12 May 2016 10:58:15 +0200 Subject: Restructuring starts. Got some initial CMake problems sorted. Need to extend. --- sample/d3d11/Effects11/d3dx11dbg.cpp | 62 ------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 sample/d3d11/Effects11/d3dx11dbg.cpp (limited to 'sample/d3d11/Effects11/d3dx11dbg.cpp') diff --git a/sample/d3d11/Effects11/d3dx11dbg.cpp b/sample/d3d11/Effects11/d3dx11dbg.cpp deleted file mode 100644 index 330e8d9..0000000 --- a/sample/d3d11/Effects11/d3dx11dbg.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx11dbg.cpp -// Content: D3DX11 Effects debugging functions -// -/////////////////////////////////////////////////////////////////////////// - -#include "pchfx.h" - - -#ifdef FXDPF - -// -// DPF -// - -void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...) -{ - static UINT uDebugLevel = (UINT) -1; - - char strA[4096]; - char strB[4096]; - - va_list ap; - va_start(ap, szFormat); - StringCchVPrintfA(strA, sizeof(strA), szFormat, ap); - strA[4095] = '\0'; - va_end(ap); - - StringCchPrintfA(strB, sizeof(strB), "Effects11: %s\r\n", strA); - - strB[4095] = '\0'; - - OutputDebugStringA(strB); -} -#else -// This is defined so warning LNK4211 is not generated (object file has no public symbols) -void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...) {} -#endif - - -// -// D3DXASSERT -// - -#ifdef _DEBUG - -int WINAPI D3DXDebugAssert(LPCSTR szFile, int nLine, LPCSTR szCondition) -{ - char str[512]; - - // Print message to debug console - StringCchPrintfA(str, sizeof(str), "Assertion failure! (%s %d): %s\r\n", szFile, nLine, szCondition); - str[511] = 0; - OutputDebugStringA(str); - - return 0; -} -#endif - -- cgit v1.2.3