From c2e5d2468ad6a38cdb8a067da0678302f6cc6066 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 13 Sep 2019 15:59:15 -0400 Subject: Refactor render-test to make cross platform (#1053) * First pass of render-test refactor. * Make window construction a function that can choose an implementation. * Remove OpenGL as currently has windows dependency. * Disable Vulkan as Renderer impl has dependency on windows. * Pass Window in as parameter of 'update'. * Add win-window.cpp as was missing. * Fix warning on windows about signs during comparison. --- examples/hello-world/main.cpp | 2 +- examples/model-viewer/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp index bac378d96..4a15bd4fa 100644 --- a/examples/hello-world/main.cpp +++ b/examples/hello-world/main.cpp @@ -33,7 +33,7 @@ // design choices in their abstraction layer. // #include "gfx/render.h" -#include "gfx/render-d3d11.h" +#include "gfx/d3d11/render-d3d11.h" #include "gfx/window.h" using namespace gfx; diff --git a/examples/model-viewer/main.cpp b/examples/model-viewer/main.cpp index 66a53c245..5dcc51257 100644 --- a/examples/model-viewer/main.cpp +++ b/examples/model-viewer/main.cpp @@ -18,7 +18,7 @@ // #include "gfx/model.h" #include "gfx/render.h" -#include "gfx/render-d3d11.h" +#include "gfx/d3d11/render-d3d11.h" #include "gfx/vector-math.h" #include "gfx/window.h" #include "gfx/gui.h" -- cgit v1.2.3