add m_fDeltaTime getter function

This commit is contained in:
jiang xiaohua 2013-03-01 13:40:38 +08:00
parent 4b5c3a4b22
commit 5feeaf024e
1 changed files with 3 additions and 3 deletions

View File

@ -323,6 +323,9 @@ public:
*/
CC_PROPERTY(CCAccelerometer*, m_pAccelerometer, Accelerometer);
/* delta time since last tick to main loop */
CC_PROPERTY_READONLY(float, m_fDeltaTime, DeltaTime);
/** returns a shared instance of the director */
static CCDirector* sharedDirector(void);
@ -381,9 +384,6 @@ protected:
/* last time the main loop was updated */
struct cc_timeval *m_pLastUpdate;
/* delta time since last tick to main loop */
float m_fDeltaTime;
/* whether or not the next delta time will be zero */
bool m_bNextDeltaTimeZero;