mirror of https://github.com/axmolengine/axmol.git
add m_fDeltaTime getter function
This commit is contained in:
parent
4b5c3a4b22
commit
5feeaf024e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue