dm 7 년 전
부모
커밋
38c7204407
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      oxygine/src/oxygine/Clock.cpp
  2. 1 0
      oxygine/src/oxygine/Clock.h

+ 5 - 0
oxygine/src/oxygine/Clock.cpp

@@ -182,6 +182,11 @@ namespace oxygine
         return _counter;
         return _counter;
     }
     }
 
 
+    bool Clock::isPaused() const
+    {
+        return _counter != 0;
+    }
+
     std::string Clock::dump() const
     std::string Clock::dump() const
     {
     {
         std::stringstream stream;
         std::stringstream stream;

+ 1 - 0
oxygine/src/oxygine/Clock.h

@@ -21,6 +21,7 @@ namespace oxygine
         /**returns current clock time in seconds*/
         /**returns current clock time in seconds*/
         float   getTimeF() const;
         float   getTimeF() const;
         int     getPauseCounter() const;
         int     getPauseCounter() const;
+        bool    isPaused() const;
         
         
         float   getFixedStepF() const;
         float   getFixedStepF() const;
         float   getLastDTF() const;
         float   getLastDTF() const;