From e57ff57e6a55f1213a84a13f60c78cbd73967d68 Mon Sep 17 00:00:00 2001 From: Tianjiao Huang Date: Thu, 10 May 2018 22:20:25 -0700 Subject: [PATCH] remove unused var; add make clean --- .gitignore | 3 +++ May 25/May 25.vcxproj | 1 + May 25/May 25.vcxproj.filters | 8 ++++++-- May 25/MyWindowsProcs.cpp | 1 - May 25/hlsl/Makefile | 5 ++++- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1c9a181..5c45d03 100644 --- a/.gitignore +++ b/.gitignore @@ -240,3 +240,6 @@ ModelManifest.xml # FAKE - F# Make .fake/ + + +*.cso \ No newline at end of file diff --git a/May 25/May 25.vcxproj b/May 25/May 25.vcxproj index 8fee24c..2905ca2 100644 --- a/May 25/May 25.vcxproj +++ b/May 25/May 25.vcxproj @@ -123,6 +123,7 @@ WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) true %(DisableSpecificWarnings) + MultiThreaded Windows diff --git a/May 25/May 25.vcxproj.filters b/May 25/May 25.vcxproj.filters index f10b028..6785c07 100644 --- a/May 25/May 25.vcxproj.filters +++ b/May 25/May 25.vcxproj.filters @@ -211,8 +211,12 @@ Shaders - - + + Resource Files + + + Resource Files + diff --git a/May 25/MyWindowsProcs.cpp b/May 25/MyWindowsProcs.cpp index 6e5df1d..de383f7 100644 --- a/May 25/MyWindowsProcs.cpp +++ b/May 25/MyWindowsProcs.cpp @@ -545,7 +545,6 @@ LRESULT CALLBACK UIWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam LPDRAWITEMSTRUCT pDIS = (LPDRAWITEMSTRUCT)lParam; HWND hwnd = pDIS->hwndItem; BITMAP bm; - PAINTSTRUCT ps; HDC hdc = pDIS->hDC; diff --git a/May 25/hlsl/Makefile b/May 25/hlsl/Makefile index 154a13a..d59fe47 100644 --- a/May 25/hlsl/Makefile +++ b/May 25/hlsl/Makefile @@ -10,4 +10,7 @@ ps_shadow.cso: ShadowmapShader.hlsl fxc //T ps_5_0 //E "PS" //Fo ps_shadow.cso ShadowmapShader.hlsl vs_shadow.cso: ShadowmapShader.hlsl - fxc //T vs_5_0 //E "VS" //Fo vs_shadow.cso ShadowmapShader.hlsl \ No newline at end of file + fxc //T vs_5_0 //E "VS" //Fo vs_shadow.cso ShadowmapShader.hlsl + +clean: + rm ps.cso vs.cso ps_shadow.cso vs_shadow.cso \ No newline at end of file