#include <CCApplicationProtocol.h>
|
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
} |
| Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform). More...
|
|
virtual void
applicationDidEnterBackground |
( |
| ) |
|
|
pure virtual |
This function will be called when the application enters background.
virtual bool
applicationDidFinishLaunching |
( |
| ) |
|
|
pure virtual |
Implement Director and Scene init code here.
- Returns
- true Initialize success, app continue.
-
false Initialize failed, app terminate.
virtual void
applicationWillEnterForeground |
( |
| ) |
|
|
pure virtual |
This function will be called when the application enters foreground.
virtual LanguageType
getCurrentLanguage |
( |
| ) |
|
|
pure virtual |
virtual const char*
getCurrentLanguageCode |
( |
| ) |
|
|
pure virtual |
virtual void initGLContextAttrs |
( |
| ) |
|
|
inlinevirtual |
Subclass override the function to set OpenGL context attribution instead of use default value.
And now can only set six attributions:redBits,greenBits,blueBits,alphaBits,depthBits,stencilBits. Default value are(5,6,5,0,16,0), usually use as follows: void AppDelegate::initGLContextAttrs(){ GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; GLView::setGLContextAttrs(glContextAttrs); }
var initGLContextAttrs |
( |
| ) |
|
|
inlinevirtual |
Subclass override the function to set OpenGL context attribution instead of use default value.
And now can only set six attributions:redBits,greenBits,blueBits,alphaBits,depthBits,stencilBits. Default value are(5,6,5,0,16,0), usually use as follows: void AppDelegate::initGLContextAttrs(){ GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; GLView::setGLContextAttrs(glContextAttrs); }
local initGLContextAttrs |
( |
| ) |
|
|
inlinevirtual |
Subclass override the function to set OpenGL context attribution instead of use default value.
And now can only set six attributions:redBits,greenBits,blueBits,alphaBits,depthBits,stencilBits. Default value are(5,6,5,0,16,0), usually use as follows: void AppDelegate::initGLContextAttrs(){ GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; GLView::setGLContextAttrs(glContextAttrs); }
virtual bool openURL |
( |
const std::string & |
url | ) |
|
|
pure virtual |
virtual void setAnimationInterval |
( |
double |
interval | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: