[vlmc-devel] [PATCH 4/7] GenericRenderer: Define functions in the .cpp file

Yikai Lu luyikei.qmltu at gmail.com
Sat Apr 16 08:22:04 CEST 2016


---
 src/Renderer/GenericRenderer.cpp | 12 ++++++++++++
 src/Renderer/GenericRenderer.h   | 11 ++---------
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/Renderer/GenericRenderer.cpp b/src/Renderer/GenericRenderer.cpp
index df16cf5..598b59e 100644
--- a/src/Renderer/GenericRenderer.cpp
+++ b/src/Renderer/GenericRenderer.cpp
@@ -37,6 +37,18 @@ GenericRenderer::~GenericRenderer()
     delete m_eventWatcher;
 }
 
+bool
+GenericRenderer::isPaused() const
+{
+    return m_paused;
+}
+
+bool
+GenericRenderer::isRendering() const
+{
+    return m_isRendering;
+}
+
 #ifdef WITH_GUI
 RendererEventWatcher*
 GenericRenderer::eventWatcher()
diff --git a/src/Renderer/GenericRenderer.h b/src/Renderer/GenericRenderer.h
index 6ffe670..6fb326a 100644
--- a/src/Renderer/GenericRenderer.h
+++ b/src/Renderer/GenericRenderer.h
@@ -125,10 +125,7 @@ public:
      *  \brief  Return true if the renderer is paused
      *  \return true if the renderer is paused. false otherwise.
      */
-    bool                            isPaused() const
-    {
-        return m_paused;
-    }
+    bool                            isPaused() const;
 
     /**
      *  \brief      Return true if the renderer is currently rendering.
@@ -136,11 +133,7 @@ public:
      *              Note that a paused renderer is still rendering
      *  \sa         isPaused()
      */
-    bool                            isRendering() const
-    {
-        return m_isRendering;
-    }
-
+    bool                            isRendering() const;
 
     RendererEventWatcher*           eventWatcher();
 protected:
-- 
1.9.1



More information about the Vlmc-devel mailing list