pass overlay member to virtual update function

This commit is contained in:
saschawillems 2017-10-30 12:36:44 +01:00
parent f6af0bde03
commit ab407f5346
2 changed files with 6 additions and 7 deletions

View file

@ -66,6 +66,7 @@ private:
uint32_t destHeight;
bool resizing = false;
vks::Benchmark benchmark;
vks::UIOverlay *UIOverlay = nullptr;
// Called if the window is resized and some resources have to be recreatesd
void windowResize();
protected:
@ -167,8 +168,6 @@ public:
bool paused = false;
vks::UIOverlay *UIOverlay = nullptr;
// Use to adjust mouse rotation speed
float rotationSpeed = 1.0f;
// Use to adjust mouse zoom speed
@ -394,7 +393,7 @@ public:
void submitFrame();
/** @brief (Virtual) Called when the UI overlay is updating, can be used to add custom elements to the overlay */
virtual void OnUpdateUIOverlay();
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay);
};
// OS specific macros for the example main entry points