Explorar o código

Added current frame number

Gavin %!s(int64=4) %!d(string=hai) anos
pai
achega
aee9bd67e0
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      include/vkw/VulkanApplication.h

+ 6 - 1
include/vkw/VulkanApplication.h

@@ -188,6 +188,11 @@ public:
     {
         return m_quit;
     }
+
+    uint64_t currentFrameNumber() const
+    {
+        return m_currentFrameNumber;
+    }
 protected:
     friend class SDLVulkanWidget3;
 
@@ -208,7 +213,7 @@ protected:
     bool                     m_quit=false;
     bool                     m_renderNextFrame=true;
 
-
+    uint64_t                 m_currentFrameNumber=0;
     VkQueue                  m_graphicsQueue;
     VkQueue                  m_presentQueue;