cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
#include <CCApplication.h>
Public Member Functions | |
CCApplication () | |
virtual | ~CCApplication () |
virtual void | setAnimationInterval (double interval) |
Callback by CCDirector for limit FPS. More... | |
virtual ccLanguageType | getCurrentLanguage () |
Get current language config. More... | |
virtual TargetPlatform | getTargetPlatform () |
Get target platform. More... | |
CC_DEPRECATED_ATTRIBUTE void | setResourceRootPath (const std::string &rootResDir) |
Sets the Resource root path. More... | |
CC_DEPRECATED_ATTRIBUTE const std::string & | getResourceRootPath (void) |
Gets the Resource root path. More... | |
void | setStartupScriptFilename (const std::string &startupScriptFile) |
bool | getControllerConnected () const |
const std::string & | getStartupScriptFilename (void) |
CCApplication () | |
virtual | ~CCApplication () |
int | run () |
Run the message loop. More... | |
virtual void | setAnimationInterval (double interval) |
Callback by CCDirector for limit FPS. More... | |
virtual ccLanguageType | getCurrentLanguage () |
Get current language config. More... | |
virtual TargetPlatform | getTargetPlatform () |
Get target platform. More... | |
CC_DEPRECATED_ATTRIBUTE void | setResourceRootPath (const std::string &rootResDir) |
Sets the Resource root path. More... | |
CC_DEPRECATED_ATTRIBUTE const std::string & | getResourceRootPath (void) |
Gets the Resource root path. More... | |
void | setStartupScriptFilename (const std::string &startupScriptFile) |
const std::string & | getStartupScriptFilename (void) |
virtual void | gameDidSave () |
Run the message loop. More... | |
virtual void | openURL (const char *url) |
virtual int | run () |
virtual void | setupGLView () |
virtual void | platformShutdown () |
void | toggleVerticalSync (bool) |
bool | getVerticalSyncEnabled () const |
![]() | |
virtual | ~CCApplicationProtocol () |
virtual bool | applicationDidFinishLaunching ()=0 |
Implement CCDirector and CCScene init code here. More... | |
virtual void | applicationDidEnterBackground ()=0 |
The function be called when the application enter background. More... | |
virtual void | applicationWillEnterForeground ()=0 |
The function be called when the application enter foreground. More... | |
virtual void | setAnimationInterval (double interval)=0 |
Callback by CCDirector for limit FPS. More... | |
virtual ccLanguageType | getCurrentLanguage ()=0 |
Get current language config. More... | |
virtual TargetPlatform | getTargetPlatform ()=0 |
Get target platform. More... | |
virtual void | applicationWillBecomeActive () |
virtual void | applicationWillResignActive () |
virtual void | trySaveGame () |
Static Public Member Functions | |
static CCApplication * | sharedApplication () |
Get current applicaiton instance. More... | |
static CCApplication * | sharedApplication () |
Get current applicaiton instance. More... | |
Public Attributes | |
HINSTANCE | m_hInstance |
HACCEL | m_hAccelTable |
LARGE_INTEGER | m_nAnimationInterval |
std::string | m_resourceRootPath |
std::string | m_startupScriptFilename |
Static Public Attributes | |
static CCApplication * | sm_pSharedApplication |
CCApplication | ( | ) |
|
virtual |
CCApplication | ( | ) |
|
virtual |
|
virtual |
Run the message loop.
Reimplemented from CCApplicationProtocol.
bool getControllerConnected | ( | ) | const |
|
virtual |
|
virtual |
CC_DEPRECATED_ATTRIBUTE const std::string & getResourceRootPath | ( | void | ) |
Gets the Resource root path.
CC_DEPRECATED_ATTRIBUTE const std::string & getResourceRootPath | ( | void | ) |
Gets the Resource root path.
|
inline |
|
inline |
|
virtual |
Get target platform.
Implements CCApplicationProtocol.
|
virtual |
Get target platform.
Implements CCApplicationProtocol.
bool getVerticalSyncEnabled | ( | ) | const |
|
virtual |
Reimplemented from CCApplicationProtocol.
|
virtual |
|
virtual |
int run | ( | ) |
Run the message loop.
|
virtual |
Callback by CCDirector for limit FPS.
@interval The time, expressed in seconds, between current frame and next.
Implements CCApplicationProtocol.
|
virtual |
Callback by CCDirector for limit FPS.
@interval The time, expressed in seconds, between current frame and next.
Implements CCApplicationProtocol.
CC_DEPRECATED_ATTRIBUTE void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
CC_DEPRECATED_ATTRIBUTE void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
void setStartupScriptFilename | ( | const std::string & | startupScriptFile | ) |
void setStartupScriptFilename | ( | const std::string & | startupScriptFile | ) |
|
virtual |
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
void toggleVerticalSync | ( | bool | ) |
HACCEL m_hAccelTable |
HINSTANCE m_hInstance |
LARGE_INTEGER m_nAnimationInterval |
std::string m_resourceRootPath |
std::string m_startupScriptFilename |
|
static |