From 04f03d78af48d2fa30fda9ce6ee6cb80d1f63ce9 Mon Sep 17 00:00:00 2001 From: Marcel Smit Date: Fri, 14 Feb 2020 11:23:28 +0100 Subject: [PATCH] NoGL: Update ExampleBrowserInterface and EmptyBrowser, with interface methods added to the OpenGL example browser, but didn't get added to the interface and empty interface. Required to compile the in-process example browser without OpenGL dependency. --- examples/ExampleBrowser/EmptyBrowser.h | 8 ++++++++ examples/ExampleBrowser/ExampleBrowserInterface.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/examples/ExampleBrowser/EmptyBrowser.h b/examples/ExampleBrowser/EmptyBrowser.h index eea06873b..b3dd3a802 100644 --- a/examples/ExampleBrowser/EmptyBrowser.h +++ b/examples/ExampleBrowser/EmptyBrowser.h @@ -28,10 +28,18 @@ public: m_emptyExample.stepSimulation(deltaTime); } + virtual void updateGraphics() + { + } + virtual bool requestedExit() { return false; } + + virtual void setSharedMemoryInterface(class SharedMemoryInterface* sharedMem) + { + } }; #endif //EMPTY_BROWSER diff --git a/examples/ExampleBrowser/ExampleBrowserInterface.h b/examples/ExampleBrowser/ExampleBrowserInterface.h index 5d8ecbd80..f4867987b 100644 --- a/examples/ExampleBrowser/ExampleBrowserInterface.h +++ b/examples/ExampleBrowser/ExampleBrowserInterface.h @@ -14,7 +14,11 @@ public: virtual void update(float deltaTime) = 0; + virtual void updateGraphics() = 0; + virtual bool requestedExit() = 0; + + virtual void setSharedMemoryInterface(class SharedMemoryInterface* sharedMem) = 0; }; #endif //EXAMPLE_BROWSER_GUI_H \ No newline at end of file