|
Scene * | getRunningScene () |
| Gets current running Scene. More...
|
|
var | getRunningScene () |
| Gets current running Scene. More...
|
|
local | getRunningScene () |
| Gets current running Scene. More...
|
|
float | getAnimationInterval () |
| Gets the FPS value. More...
|
|
void | setAnimationInterval (float interval) |
| Sets the FPS value. More...
|
|
var | setAnimationInterval ( var interval) |
| Sets the FPS value. More...
|
|
local | setAnimationInterval ( local interval) |
| Sets the FPS value. More...
|
|
bool | isDisplayStats () |
| Whether or not displaying the FPS on the bottom-left corner of the screen. More...
|
|
void | setDisplayStats (bool displayStats) |
| Display the FPS on the bottom-left corner of the screen. More...
|
|
var | setDisplayStats ( var displayStats) |
| Display the FPS on the bottom-left corner of the screen. More...
|
|
local | setDisplayStats ( local displayStats) |
| Display the FPS on the bottom-left corner of the screen. More...
|
|
float | getSecondsPerFrame () |
| Get seconds per frame. More...
|
|
var | getSecondsPerFrame () |
| Get seconds per frame. More...
|
|
local | getSecondsPerFrame () |
| Get seconds per frame. More...
|
|
GLView * | getOpenGLView () |
| Get the GLView.
|
|
void | setOpenGLView (GLView *openGLView) |
| Sets the GLView.
|
|
var | setOpenGLView ( var openGLView) |
| Sets the GLView.
|
|
bool | isNextDeltaTimeZero () |
| Whether or not _nextDeltaTimeZero is set to 0. More...
|
|
var | isNextDeltaTimeZero () |
| Whether or not _nextDeltaTimeZero is set to 0. More...
|
|
local | isNextDeltaTimeZero () |
| Whether or not _nextDeltaTimeZero is set to 0. More...
|
|
void | setNextDeltaTimeZero (bool nextDeltaTimeZero) |
| Sets the delta time between current frame and next frame is 0. More...
|
|
bool | isPaused () |
| Whether or not the Director is paused. More...
|
|
unsigned int | getTotalFrames () |
| How many frames were called since the director started.
|
|
var | getTotalFrames () |
| How many frames were called since the director started.
|
|
local | getTotalFrames () |
| How many frames were called since the director started.
|
|
Projection | getProjection () |
| Gets an OpenGL projection. More...
|
|
var | getProjection () |
| Gets an OpenGL projection. More...
|
|
void | setProjection (Projection projection) |
| Sets OpenGL projection. More...
|
|
void | setViewport () |
| Sets the glViewport. More...
|
|
var | setViewport () |
| Sets the glViewport. More...
|
|
local | setViewport () |
| Sets the glViewport. More...
|
|
bool | isSendCleanupToScene () |
| Whether or not the replaced scene will receive the cleanup message. More...
|
|
Node * | getNotificationNode () const |
| This object will be visited after the main scene is visited. More...
|
|
void | setNotificationNode (Node *node) |
| Sets the notification node. More...
|
|
var | setNotificationNode ( var node) |
| Sets the notification node. More...
|
|
local | setNotificationNode ( local node) |
| Sets the notification node. More...
|
|
const Size & | getWinSize () const |
| Returns the size of the OpenGL view in points. More...
|
|
var | getWinSize () |
| Returns the size of the OpenGL view in points. More...
|
|
local | getWinSize () |
| Returns the size of the OpenGL view in points. More...
|
|
Size | getWinSizeInPixels () const |
| Returns the size of the OpenGL view in pixels. More...
|
|
var | getWinSizeInPixels () |
| Returns the size of the OpenGL view in pixels. More...
|
|
local | getWinSizeInPixels () |
| Returns the size of the OpenGL view in pixels. More...
|
|
Size | getVisibleSize () const |
| Returns visible size of the OpenGL view in points. More...
|
|
Vec2 | getVisibleOrigin () const |
| Returns visible origin coordinate of the OpenGL view in points. More...
|
|
var | getVisibleOrigin () |
| Returns visible origin coordinate of the OpenGL view in points. More...
|
|
local | getVisibleOrigin () |
| Returns visible origin coordinate of the OpenGL view in points. More...
|
|
Rect | getSafeAreaRect () const |
| Returns safe area rectangle of the OpenGL view in points.
|
|
var | getSafeAreaRect () |
| Returns safe area rectangle of the OpenGL view in points.
|
|
local | getSafeAreaRect () |
| Returns safe area rectangle of the OpenGL view in points.
|
|
Vec2 | convertToGL (const Vec2 &point) |
| Converts a screen coordinate to an OpenGL coordinate. More...
|
|
local | convertToGL ( local point) |
| Converts a screen coordinate to an OpenGL coordinate. More...
|
|
Vec2 | convertToUI (const Vec2 &point) |
| Converts an OpenGL coordinate to a screen coordinate. More...
|
|
float | getZEye () const |
| Gets the distance between camera and near clipping frame. More...
|
|
var | getZEye () |
| Gets the distance between camera and near clipping frame. More...
|
|
local | getZEye () |
| Gets the distance between camera and near clipping frame. More...
|
|
void | runWithScene (Scene *scene) |
| Enters the Director's main loop with the given Scene. More...
|
|
local | runWithScene ( local scene) |
| Enters the Director's main loop with the given Scene. More...
|
|
void | pushScene (Scene *scene) |
| Suspends the execution of the running scene, pushing it on the stack of suspended scenes. More...
|
|
void | popScene () |
| Pops out a scene from the stack. More...
|
|
void | popToRootScene () |
| Pops out all scenes from the stack until the root scene in the queue. More...
|
|
void | popToSceneStackLevel (int level) |
| Pops out all scenes from the stack until it reaches level . More...
|
|
var | popToSceneStackLevel ( var level) |
| Pops out all scenes from the stack until it reaches level . More...
|
|
local | popToSceneStackLevel ( local level) |
| Pops out all scenes from the stack until it reaches level . More...
|
|
void | replaceScene (Scene *scene) |
| Replaces the running scene with a new one. More...
|
|
void | end () |
| Ends the execution, releases the running scene.
|
|
void | pause () |
| Pauses the running scene. More...
|
|
local | pause () |
| Pauses the running scene. More...
|
|
void | resume () |
| Resumes the paused scene. More...
|
|
var | resume () |
| Resumes the paused scene. More...
|
|
local | resume () |
| Resumes the paused scene. More...
|
|
void | stopAnimation () |
| Stops the animation. More...
|
|
void | startAnimation () |
| The main loop is triggered again. More...
|
|
void | drawScene () |
| Draw the scene. More...
|
|
var | drawScene () |
| Draw the scene. More...
|
|
local | drawScene () |
| Draw the scene. More...
|
|
void | purgeCachedData () |
| Removes all cocos2d cached data. More...
|
|
local | purgeCachedData () |
| Removes all cocos2d cached data. More...
|
|
void | setDefaultValues () |
| Sets the default values based on the Configuration info. More...
|
|
local | setDefaultValues () |
| Sets the default values based on the Configuration info. More...
|
|
void | setGLDefaultValues () |
| Sets the OpenGL default values. More...
|
|
void | setAlphaBlending (bool on) |
| Enables/disables OpenGL alpha blending. More...
|
|
void | setClearColor (const Color4F &clearColor) |
| Sets clear values for the color buffers, value range of each element is [0.0, 1.0].
|
|
local | setClearColor ( local clearColor) |
| Sets clear values for the color buffers, value range of each element is [0.0, 1.0].
|
|
void | setDepthTest (bool on) |
| Enables/disables OpenGL depth test. More...
|
|
void | mainLoop (float dt) |
| Invoke main loop with delta time. More...
|
|
var | mainLoop ( var dt) |
| Invoke main loop with delta time. More...
|
|
local | mainLoop ( local dt) |
| Invoke main loop with delta time. More...
|
|
void | setContentScaleFactor (float scaleFactor) |
| The size in pixels of the surface. More...
|
|
float | getContentScaleFactor () const |
| Gets content scale factor. More...
|
|
Scheduler * | getScheduler () const |
| Gets the Scheduler associated with this director. More...
|
|
var | getScheduler () |
| Gets the Scheduler associated with this director. More...
|
|
local | getScheduler () |
| Gets the Scheduler associated with this director. More...
|
|
void | setScheduler (Scheduler *scheduler) |
| Sets the Scheduler associated with this director. More...
|
|
var | setScheduler ( var scheduler) |
| Sets the Scheduler associated with this director. More...
|
|
local | setScheduler ( local scheduler) |
| Sets the Scheduler associated with this director. More...
|
|
ActionManager * | getActionManager () const |
| Gets the ActionManager associated with this director. More...
|
|
var | getActionManager () |
| Gets the ActionManager associated with this director. More...
|
|
local | getActionManager () |
| Gets the ActionManager associated with this director. More...
|
|
void | setActionManager (ActionManager *actionManager) |
| Sets the ActionManager associated with this director. More...
|
|
var | setActionManager ( var actionManager) |
| Sets the ActionManager associated with this director. More...
|
|
local | setActionManager ( local actionManager) |
| Sets the ActionManager associated with this director. More...
|
|
EventDispatcher * | getEventDispatcher () const |
| Gets the EventDispatcher associated with this director. More...
|
|
local | getEventDispatcher () |
| Gets the EventDispatcher associated with this director. More...
|
|
void | setEventDispatcher (EventDispatcher *dispatcher) |
| Sets the EventDispatcher associated with this director. More...
|
|
local | setEventDispatcher ( local dispatcher) |
| Sets the EventDispatcher associated with this director. More...
|
|
Renderer * | getRenderer () const |
| Returns the Renderer associated with this director. More...
|
|
var | getRenderer () |
| Returns the Renderer associated with this director. More...
|
|
local | getRenderer () |
| Returns the Renderer associated with this director. More...
|
|
Console * | getConsole () const |
| Returns the Console associated with this director. More...
|
|
local | getConsole () |
| Returns the Console associated with this director. More...
|
|
float | getFrameRate () const |
| Gets Frame Rate.
|
|
local | getFrameRate () |
| Gets Frame Rate.
|
|
void | pushMatrix (MATRIX_STACK_TYPE type) |
| Clones a specified type matrix and put it to the top of specified type of matrix stack.
|
|
local | pushMatrix ( local type) |
| Clones a specified type matrix and put it to the top of specified type of matrix stack.
|
|
void | pushProjectionMatrix (size_t index) |
| Clones a projection matrix and put it to the top of projection matrix stack. More...
|
|
void | popMatrix (MATRIX_STACK_TYPE type) |
| Pops the top matrix of the specified type of matrix stack.
|
|
local | popMatrix ( local type) |
| Pops the top matrix of the specified type of matrix stack.
|
|
void | popProjectionMatrix (size_t index) |
| Pops the top matrix of the projection matrix stack. More...
|
|
local | popProjectionMatrix ( local index) |
| Pops the top matrix of the projection matrix stack. More...
|
|
void | loadIdentityMatrix (MATRIX_STACK_TYPE type) |
| Adds an identity matrix to the top of specified type of matrix stack.
|
|
void | loadProjectionIdentityMatrix (size_t index) |
| Adds an identity matrix to the top of projection matrix stack. More...
|
|
local | loadProjectionIdentityMatrix ( local index) |
| Adds an identity matrix to the top of projection matrix stack. More...
|
|
void | loadMatrix (MATRIX_STACK_TYPE type, const Mat4 &mat) |
| Adds a matrix to the top of specified type of matrix stack. More...
|
|
local | loadMatrix ( local type, local mat) |
| Adds a matrix to the top of specified type of matrix stack. More...
|
|
void | loadProjectionMatrix (const Mat4 &mat, size_t index) |
| Adds a matrix to the top of projection matrix stack. More...
|
|
void | multiplyMatrix (MATRIX_STACK_TYPE type, const Mat4 &mat) |
| Multiplies a matrix to the top of specified type of matrix stack. More...
|
|
void | multiplyProjectionMatrix (const Mat4 &mat, size_t index) |
| Multiplies a matrix to the top of projection matrix stack. More...
|
|
const Mat4 & | getMatrix (MATRIX_STACK_TYPE type) const |
| Gets the top matrix of specified type of matrix stack.
|
|
const Mat4 & | getProjectionMatrix (size_t index) const |
| Gets the top matrix of projection matrix stack. More...
|
|
void | resetMatrixStack () |
| Clear all types of matrix stack, and add identity matrix to these matrix stacks.
|
|
void | initProjectionMatrixStack (size_t stackCount) |
| Init the projection matrix stack. More...
|
|
local | initProjectionMatrixStack ( local stackCount) |
| Init the projection matrix stack. More...
|
|
size_t | getProjectionMatrixStackSize () |
| Get the size of projection matrix stack.
|
|
const std::thread::id & | getCocos2dThreadId () const |
| returns the cocos2d thread id. More...
|
|
local | getCocos2dThreadId () |
| returns the cocos2d thread id. More...
|
|
bool | isValid () const |
| returns whether or not the Director is in a valid state
|
|
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
local | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
local | getReferenceCount () |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
| Destructor. More...
|
|