Class cc.Application
Extends
cc.Class.
Defined in: CCApplication.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Run main loop of game engine
|
Method Attributes | Method Name and Description |
---|---|
ctor()
Constructor
|
|
<static> |
cc.Application.getCurrentLanguage()
Get current language config
|
run()
Run the message loop.
|
|
setAnimationInterval(interval)
Callback by cc.Director for limit FPS.
|
|
<static> |
cc.Application.sharedApplication()
Get current applicaiton instance.
|
statusBarFrame(rect)
Get status bar rectangle in EGLView window.
|
Method Detail
ctor()
Constructor
<static>
{Number}
cc.Application.getCurrentLanguage()
Get current language config
- Returns:
- {Number} Current language config
{Number}
run()
Run the message loop.
- Returns:
- {Number}
setAnimationInterval(interval)
Callback by cc.Director for limit FPS.
- Parameters:
- {Number} interval
- The time, which expressed in second, between current frame and next.
<static>
{cc.Application}
cc.Application.sharedApplication()
Get current applicaiton instance.
- Returns:
- {cc.Application} Current application instance pointer.
statusBarFrame(rect)
Get status bar rectangle in EGLView window.
- Parameters:
- {cc.Rect} rect