[vlmc-devel] GenericRenderer: Define functions in the .cpp file
Yikai Lu
git at videolan.org
Fri Apr 22 16:05:43 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 18 17:32:23 2016 +0900| [b646076c4f49b85f3fe3e28a0f23d2d02906c8ba] | committer: Hugo Beauzée-Luyssen
GenericRenderer: Define functions in the .cpp file
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/b646076c4f49b85f3fe3e28a0f23d2d02906c8ba
---
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 bbe0259..c1d9341 100644
--- a/src/Renderer/GenericRenderer.cpp
+++ b/src/Renderer/GenericRenderer.cpp
@@ -38,6 +38,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:
More information about the Vlmc-devel
mailing list