@@ -162,6 +162,11 @@ typedef NS_ENUM(NSUInteger, CCDirectorProjection) {
162162 CCActionManager *_actionManagerFixed;
163163
164164 NSMutableArray *_rendererPool;
165+
166+ @protected
167+ GLKMatrix4 _projectionMatrix;
168+ __weak id <CCDirectorDelegate> _delegate;
169+ __weak NSThread *_runningThread;
165170}
166171
167172// Undocumented members (considered private)
@@ -217,6 +222,12 @@ typedef NS_ENUM(NSUInteger, CCDirectorProjection) {
217222// / @see projection
218223@property (nonatomic , readonly ) GLKMatrix4 projectionMatrix;
219224
225+ // / Rect of the visible screen area in GL coordinates.
226+ @property (nonatomic , readonly ) CGRect viewportRect;
227+
228+ /* Sets the glViewport*/
229+ -(void ) setViewport ;
230+
220231// / The current global shader values values.
221232@property (nonatomic , readonly ) NSMutableDictionary *globalShaderUniforms;
222233/* * Whether or not to display statistics in the view's lower left corner. From top to bottom the numbers are:
@@ -343,6 +354,13 @@ typedef NS_ENUM(NSUInteger, CCDirectorProjection) {
343354 */
344355-(void ) popToRootSceneWithTransition : (CCTransition *)transition ;
345356
357+ /* Pops out all scenes from the queue until it reaches `level`.
358+ If level is 0, it will end the director.
359+ If level is 1, it will pop all scenes until it reaches to root scene.
360+ If level is <= than the current stack level, it won't do anything.
361+ */
362+ -(void ) popToSceneStackLevel : (NSUInteger )level ;
363+
346364// purposefully undocumented: is the same as calling presentScene:
347365-(void ) replaceScene : (CCScene*) scene ;
348366
@@ -366,6 +384,13 @@ typedef NS_ENUM(NSUInteger, CCDirectorProjection) {
366384 */
367385- (void )popSceneWithTransition : (CCTransition *)transition ;
368386
387+ - (void )startTransition : (CCTransition *)transition ;
388+
389+ /* Draw the scene.
390+ This method is called every frame. Don't call it manually.
391+ */
392+ -(void ) drawScene ;
393+
369394/* * @name Animating the Active Scene */
370395
371396/* * The animation interval is the time per frame. Typically specified as `1.0 / 60.0` where the latter number defines
@@ -436,7 +461,53 @@ typedef NS_ENUM(NSUInteger, CCDirectorProjection) {
436461/* * Removes all the cocos2d resources that have been previously loaded and automatically cached, textures for instance. */
437462-(void ) purgeCachedData ;
438463
464+ #pragma mark Internal stuff
465+
466+ /* Whether or not the replaced scene will receive the cleanup message.
467+ If the new scene is pushed, then the old scene won't receive the "cleanup" message.
468+ If the new scene replaces the old one, the it will receive the "cleanup" message.
469+ */
470+ @property (nonatomic , readonly ) BOOL sendCleanupToScene;
471+
472+ /* This object will be visited after the main scene is visited.
473+ This object MUST implement the "visit" selector.
474+ Useful to hook a notification object, like CCNotifications (http://github.com/manucorporat/CCNotifications)
475+ */
476+ @property (nonatomic , readwrite , strong ) id notificationNode;
477+
478+ /* CCScheduler associated with this director
479+ */
480+ @property (nonatomic ,readwrite ,strong ) CCScheduler *scheduler;
481+
482+ /* CCActionManager associated with this director
483+ */
484+ @property (nonatomic ,readwrite ,strong ) CCActionManager *actionManager;
485+
486+ /* CCFixedActionManager associated with this director
487+ */
488+ @property (nonatomic ,readwrite ,strong ) CCActionManager *actionManagerFixed;
489+
490+ // / XXX: missing description
491+ -(float ) getZEye ;
492+
493+ // / Get a renderer object to use for rendering.
494+ // / This method is thread safe.
495+ -(CCRenderer *)rendererFromPool ;
496+
497+ // / Return a renderer to a pool after rendering.
498+ // / This method is thread safe.
499+ -(void )poolRenderer : (CCRenderer *)renderer ;
500+
501+ // / Add a block to be called when the GPU finishes rendering a frame.
502+ // / This is used to pool rendering resources (renderers, buffers, textures, etc) without stalling the GPU pipeline.
503+ -(void )addFrameCompletionHandler : (dispatch_block_t )handler ;
504+
505+ -(void ) createStatsLabel ;
506+
439507@end
440508
509+ // optimization. Should only be used to read it. Never to write it.
510+ extern NSUInteger __ccNumberOfDraws;
511+
441512// optimization. Should only be used to read it. Never to write it.
442513extern CGFloat __ccContentScaleFactor;
0 commit comments