From 0d63e0ce604e7d24f5bae51d09aa06ea0ab75957 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 22 Feb 2015 13:45:07 +0000 Subject: [PATCH] Examples: DirectX examples applications all have a Console for debugging. --- examples/directx11_example/directx11_example.vcxproj | 2 ++ examples/directx11_example/main.cpp | 2 +- examples/directx9_example/directx9_example.vcxproj | 6 ++---- examples/directx9_example/main.cpp | 2 +- examples/opengl3_example/opengl3_example.vcxproj | 4 ++-- examples/opengl_example/opengl_example.vcxproj | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/directx11_example/directx11_example.vcxproj b/examples/directx11_example/directx11_example.vcxproj index e037bb27..33b910a2 100644 --- a/examples/directx11_example/directx11_example.vcxproj +++ b/examples/directx11_example/directx11_example.vcxproj @@ -47,6 +47,7 @@ true d3d11.lib;d3dcompiler.lib;dxgi.lib;imm32.lib;%(AdditionalDependencies) $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console @@ -63,6 +64,7 @@ true d3d11.lib;d3dcompiler.lib;dxgi.lib;imm32.lib;%(AdditionalDependencies) $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console diff --git a/examples/directx11_example/main.cpp b/examples/directx11_example/main.cpp index 6224c020..79e1361e 100644 --- a/examples/directx11_example/main.cpp +++ b/examples/directx11_example/main.cpp @@ -514,7 +514,7 @@ void UpdateImGui() ImGui::NewFrame(); } -int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE, LPWSTR, int) +int main(int argc, char** argv) { // Register the window class WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, LoadCursor(NULL, IDC_ARROW), NULL, NULL, L"ImGui Example", NULL }; diff --git a/examples/directx9_example/directx9_example.vcxproj b/examples/directx9_example/directx9_example.vcxproj index a6bea6b8..52ed03e9 100644 --- a/examples/directx9_example/directx9_example.vcxproj +++ b/examples/directx9_example/directx9_example.vcxproj @@ -47,8 +47,7 @@ true $(DXSDK_DIR)Lib\x86;%(AdditionalLibraryDirectories) d3d9.lib;d3dx9d.lib;dxerr.lib;dxguid.lib;imm32.lib;%(AdditionalDependencies) - - + Console @@ -65,8 +64,7 @@ true $(DXSDK_DIR)Lib\x86;%(AdditionalLibraryDirectories) d3d9.lib;d3dx9d.lib;dxerr.lib;dxguid.lib;imm32.lib;%(AdditionalDependencies) - - + Console diff --git a/examples/directx9_example/main.cpp b/examples/directx9_example/main.cpp index 9311d9a3..74c7d2bf 100644 --- a/examples/directx9_example/main.cpp +++ b/examples/directx9_example/main.cpp @@ -280,7 +280,7 @@ void UpdateImGui() ImGui::NewFrame(); } -int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE, LPWSTR, int) +int main(int argc, char** argv) { // Register the window class WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, LoadCursor(NULL, IDC_ARROW), NULL, NULL, L"ImGui Example", NULL }; diff --git a/examples/opengl3_example/opengl3_example.vcxproj b/examples/opengl3_example/opengl3_example.vcxproj index a5c11047..d977395f 100644 --- a/examples/opengl3_example/opengl3_example.vcxproj +++ b/examples/opengl3_example/opengl3_example.vcxproj @@ -47,7 +47,7 @@ true $(ProjectDir)..\opengl_example\glfw\lib-msvc100;$(ProjectDir)..\opengl_example\glew\lib\Release\Win32;%(AdditionalLibraryDirectories) opengl32.lib;imm32.lib;glfw3.lib;glew32s.lib;%(AdditionalDependencies) - NotSet + Console @@ -64,7 +64,7 @@ true $(ProjectDir)..\opengl_example\glfw\lib-msvc100;$(ProjectDir)..\opengl_example\glew\lib\Release\Win32;%(AdditionalLibraryDirectories) opengl32.lib;imm32.lib;glfw3.lib;glew32s.lib;%(AdditionalDependencies) - NotSet + Console diff --git a/examples/opengl_example/opengl_example.vcxproj b/examples/opengl_example/opengl_example.vcxproj index d453e2f5..eabdbc34 100644 --- a/examples/opengl_example/opengl_example.vcxproj +++ b/examples/opengl_example/opengl_example.vcxproj @@ -47,7 +47,7 @@ true $(ProjectDir)\glfw\lib-msvc100;$(ProjectDir)\glew\lib\Release\Win32;%(AdditionalLibraryDirectories) opengl32.lib;imm32.lib;glfw3.lib;glew32s.lib;%(AdditionalDependencies) - NotSet + Console @@ -64,7 +64,7 @@ true $(ProjectDir)\glfw\lib-msvc100;$(ProjectDir)\glew\lib\Release\Win32;%(AdditionalLibraryDirectories) opengl32.lib;imm32.lib;glfw3.lib;glew32s.lib;%(AdditionalDependencies) - NotSet + Console