#include <CCApplication.h>
Public Member Functions | |
| Application () | |
| virtual | ~Application () |
| void | setAnimationInterval (double interval) |
| Callback by Director to limit FPS. More... | |
| var | setAnimationInterval ( var interval) |
| Callback by Director to limit FPS. More... | |
| local | setAnimationInterval ( local interval) |
| Callback by Director to limit FPS. More... | |
| int | run () |
| Run the message loop. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual Platform | getTargetPlatform () |
| Get target platform. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| virtual void | applicationScreenSizeChanged (int newWidth, int newHeight) |
| This function will be called when the application screen size is changed. More... | |
| var | applicationScreenSizeChanged ( var newWidth, var newHeight) |
| This function will be called when the application screen size is changed. More... | |
| local | applicationScreenSizeChanged ( local newWidth, local newHeight) |
| This function will be called when the application screen size is changed. More... | |
| Application () | |
| virtual | ~Application () |
| int | run () |
| Run the message loop. More... | |
| virtual void | setAnimationInterval (double interval) |
| Callback by Director for limit FPS. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| local | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| local | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual Platform | getTargetPlatform () |
| Get target platform. More... | |
| local | getTargetPlatform () |
| Get target platform. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| virtual void | applicationScreenSizeChanged (int newWidth, int newHeight) |
| This function will be called when the application screen size is changed. More... | |
| Application () | |
| virtual | ~Application () |
| void | setAnimationInterval (double interval) |
| Callback by Director for limit FPS. More... | |
| var | setAnimationInterval ( var interval) |
| Callback by Director for limit FPS. More... | |
| local | setAnimationInterval ( local interval) |
| Callback by Director for limit FPS. More... | |
| int | run () |
| Run the message loop. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| void | setResourceRootPath (const std::string &rootResDir) |
| Sets the Resource root path. More... | |
| var | setResourceRootPath ( var rootResDir) |
| Sets the Resource root path. More... | |
| local | setResourceRootPath ( local rootResDir) |
| Sets the Resource root path. More... | |
| const std::string & | getResourceRootPath (void) |
| Gets the Resource root path. More... | |
| local | getResourceRootPath () |
| Gets the Resource root path. More... | |
| virtual Platform | getTargetPlatform () |
| Get target platform. More... | |
| Application () | |
| virtual | ~Application () |
| virtual void | setAnimationInterval (double interval) |
| Callback by Director for limit FPS. More... | |
| local | setAnimationInterval ( local interval) |
| Callback by Director for limit FPS. More... | |
| int | run () |
| Get status bar rectangle in GLView window. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual Platform | getTargetPlatform () |
| Get target platform. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| void | setResourceRootPath (const std::string &rootResDir) |
| Sets the Resource root path. More... | |
| var | setResourceRootPath ( var rootResDir) |
| Sets the Resource root path. More... | |
| local | setResourceRootPath ( local rootResDir) |
| Sets the Resource root path. More... | |
| const std::string & | getResourceRootPath (void) |
| Gets the Resource root path. More... | |
| void | setStartupScriptFilename (const std::string &startupScriptFile) |
| const std::string & | getStartupScriptFilename (void) |
| local | getStartupScriptFilename () |
| Application () | |
| virtual | ~Application () |
| int | run () |
| Run the message loop. More... | |
| virtual void | setAnimationInterval (double interval) |
| Callback by Director for limit FPS. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual Platform | getTargetPlatform () |
| Get target platform. More... | |
| local | getTargetPlatform () |
| Get target platform. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| void | setResourceRootPath (const std::string &rootResDir) |
| Sets the Resource root path. More... | |
| var | setResourceRootPath ( var rootResDir) |
| Sets the Resource root path. More... | |
| local | setResourceRootPath ( local rootResDir) |
| Sets the Resource root path. More... | |
| const std::string & | getResourceRootPath (void) |
| Gets the Resource root path. More... | |
| void | setStartupScriptFilename (const std::string &startupScriptFile) |
| const std::string & | getStartupScriptFilename (void) |
| local | getStartupScriptFilename () |
| Application () | |
| virtual | ~Application () |
| int | run () |
| Run the message loop. More... | |
| virtual void | setAnimationInterval (double interval) |
| Callback by Director for limit FPS. More... | |
| local | setAnimationInterval ( local interval) |
| Callback by Director for limit FPS. More... | |
| virtual LanguageType | getCurrentLanguage () |
| Get current language config. More... | |
| virtual const char * | getCurrentLanguageCode () |
| Get current language iso 639-1 code. More... | |
| virtual Platform | getTargetPlatform () override |
| Get target platform. More... | |
| local | getTargetPlatform () |
| Get target platform. More... | |
| virtual bool | openURL (const std::string &url) |
| Open url in default browser. More... | |
| void | SetXamlOpenURLDelegate (const std::function< void(::Platform::String^)> &del) |
| Set the callback responsible for opening a URL. More... | |
| void | setResourceRootPath (const std::string &rootResDir) |
| Sets the Resource root path. More... | |
| const std::string & | getResourceRootPath (void) |
| Gets the Resource root path. More... | |
| void | setStartupScriptFilename (const std::string &startupScriptFile) |
| const std::string & | getStartupScriptFilename (void) |
Public Member Functions inherited from ApplicationProtocol | |
| virtual | ~ApplicationProtocol () |
| virtual bool | applicationDidFinishLaunching ()=0 |
| Implement Director and Scene init code here. More... | |
| virtual void | applicationDidEnterBackground ()=0 |
| This function will be called when the application enters background. More... | |
| virtual void | applicationWillEnterForeground ()=0 |
| This function will be called when the application enters foreground. More... | |
| virtual void | initGLContextAttrs () |
Static Public Member Functions | |
| static Application * | getInstance () |
| Get current application instance. More... | |
| static Application * | sharedApplication () |
| var | sharedApplication () |
| local | sharedApplication () |
| static Application * | getInstance () |
| Get the current application instance. More... | |
| local | getInstance () |
| Get the current application instance. More... | |
| static Application * | sharedApplication () |
| var | sharedApplication () |
| local | sharedApplication () |
| static Application * | getInstance () |
| Get current applicaiton instance. More... | |
| static Application * | sharedApplication () |
| var | sharedApplication () |
| local | sharedApplication () |
| static Application * | getInstance () |
| Get current applicaiton instance. More... | |
| local | getInstance () |
| Get current applicaiton instance. More... | |
| static Application * | sharedApplication () |
| var | sharedApplication () |
| local | sharedApplication () |
| static Application * | getInstance () |
| Get current applicaiton instance. More... | |
| local | getInstance () |
| Get current applicaiton instance. More... | |
| static Application * | sharedApplication () |
| var | sharedApplication () |
| local | sharedApplication () |
| static Application * | getInstance () |
| Get current applicaiton instance. More... | |
| local | getInstance () |
| Get current applicaiton instance. More... | |
Protected Attributes | |
| long | _animationInterval |
| std::string | _resourceRootPath |
| std::string | _startupScriptFilename |
| var | _startupScriptFilename |
| local | _startupScriptFilename |
| HINSTANCE | _instance |
| HACCEL | _accelTable |
| LARGE_INTEGER | _animationInterval |
| var | _animationInterval |
| local | _animationInterval |
| LARGE_INTEGER | m_nAnimationInterval |
| var | m_nAnimationInterval |
| local | m_nAnimationInterval |
| std::string | m_resourceRootPath |
| std::string | m_startupScriptFilename |
| std::function< void(::Platform::String^)> | m_openURLDelegate |
| var | m_openURLDelegate |
| local | m_openURLDelegate |
Static Protected Attributes | |
| static Application * | sm_pSharedApplication |
Additional Inherited Members | |
Public Types inherited from ApplicationProtocol | |
| enum | Platform { OS_WINDOWS, OS_LINUX, OS_MAC, OS_ANDROID, OS_IPHONE, OS_IPAD, OS_BLACKBERRY, OS_NACL, OS_EMSCRIPTEN, OS_TIZEN, OS_WINRT, OS_WP8 } |
| Application | ( | ) |
| var ctor | ( | ) |
| local Application | ( | ) |
|
virtual |
| Application | ( | ) |
| var ctor | ( | ) |
| local Application | ( | ) |
|
virtual |
| Application | ( | ) |
| var ctor | ( | ) |
| local Application | ( | ) |
|
virtual |
| Application | ( | ) |
| var ctor | ( | ) |
| local Application | ( | ) |
|
virtual |
| Application | ( | ) |
| var ctor | ( | ) |
| local Application | ( | ) |
|
virtual |
| Application | ( | ) |
| var Application | ( | ) |
| local Application | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
This function will be called when the application screen size is changed.
| new | width |
| new | height |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
virtual |
Get current language iso 639-1 code.
Implements ApplicationProtocol.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get the current application instance.
|
static |
Get the current application instance.
|
static |
Get the current application instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current application instance.
|
static |
Get current application instance.
|
static |
Get current application instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
|
static |
Get current applicaiton instance.
| const std::string& getResourceRootPath |
( | void | ) |
Gets the Resource root path.
| var getResourceRootPath | ( | ) |
Gets the Resource root path.
| local getResourceRootPath | ( | ) |
Gets the Resource root path.
| const std::string& getResourceRootPath |
( | void | ) |
Gets the Resource root path.
| var getResourceRootPath | ( | ) |
Gets the Resource root path.
| local getResourceRootPath | ( | ) |
Gets the Resource root path.
| const std::string& getResourceRootPath |
( | void | ) |
Gets the Resource root path.
| var getResourceRootPath | ( | ) |
Gets the Resource root path.
| local getResourceRootPath | ( | ) |
Gets the Resource root path.
| const std::string& getResourceRootPath |
( | void | ) |
Gets the Resource root path.
| var getResourceRootPath | ( | ) |
Gets the Resource root path.
| local getResourceRootPath | ( | ) |
Gets the Resource root path.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| const std::string& getStartupScriptFilename |
( | void | ) |
| var getStartupScriptFilename | ( | ) |
| local getStartupScriptFilename | ( | ) |
|
overridevirtual |
Get target platform.
Implements ApplicationProtocol.
|
overridevirtual |
Get target platform.
Implements ApplicationProtocol.
|
overridevirtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Get target platform.
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
|
virtual |
Open url in default browser.
| String | with url to open. |
Implements ApplicationProtocol.
| int run | ( | ) |
Run the message loop.
| var run | ( | ) |
Run the message loop.
| local run | ( | ) |
Run the message loop.
| int run | ( | ) |
Run the message loop.
| var run | ( | ) |
Run the message loop.
| local run | ( | ) |
Run the message loop.
| int run | ( | ) |
Run the message loop.
| var run | ( | ) |
Run the message loop.
| local run | ( | ) |
Run the message loop.
| int run | ( | ) |
Run the message loop.
| var run | ( | ) |
Run the message loop.
| local run | ( | ) |
Run the message loop.
| int run | ( | ) |
Run the message loop.
| var run | ( | ) |
Run the message loop.
| local run | ( | ) |
Run the message loop.
| int run | ( | ) |
Get status bar rectangle in GLView window.
Run the message loop.
|
virtual |
Callback by Director to limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director to limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director to limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, which expressed in second in second, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
|
virtual |
Callback by Director for limit FPS.
| interval | The time, expressed in seconds, between current frame and next. |
Implements ApplicationProtocol.
| void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
| var setResourceRootPath | ( | var | rootResDir | ) |
Sets the Resource root path.
| local setResourceRootPath | ( | local | rootResDir | ) |
Sets the Resource root path.
| void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
| var setResourceRootPath | ( | var | rootResDir | ) |
Sets the Resource root path.
| local setResourceRootPath | ( | local | rootResDir | ) |
Sets the Resource root path.
| void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
| var setResourceRootPath | ( | var | rootResDir | ) |
Sets the Resource root path.
| local setResourceRootPath | ( | local | rootResDir | ) |
Sets the Resource root path.
| void setResourceRootPath | ( | const std::string & | rootResDir | ) |
Sets the Resource root path.
| var setResourceRootPath | ( | var | rootResDir | ) |
Sets the Resource root path.
| local setResourceRootPath | ( | local | rootResDir | ) |
Sets the Resource root path.
| void setStartupScriptFilename | ( | const std::string & | startupScriptFile | ) |
| var setStartupScriptFilename | ( | var | startupScriptFile | ) |
| local setStartupScriptFilename | ( | local | startupScriptFile | ) |
| void setStartupScriptFilename | ( | const std::string & | startupScriptFile | ) |
| var setStartupScriptFilename | ( | var | startupScriptFile | ) |
| local setStartupScriptFilename | ( | local | startupScriptFile | ) |
| void setStartupScriptFilename | ( | const std::string & | startupScriptFile | ) |
| var setStartupScriptFilename | ( | var | startupScriptFile | ) |
| local setStartupScriptFilename | ( | local | startupScriptFile | ) |
|
inline |
Set the callback responsible for opening a URL.
| del | The delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash. |
|
inline |
Set the callback responsible for opening a URL.
| del | The delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash. |
|
inline |
Set the callback responsible for opening a URL.
| del | The delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |