Sparrow Class Reference
| Inherits from | NSObject |
| Declared in | SparrowClass.h |
Overview
The Sparrow class provides static convenience methods to access certain properties of the current SPViewController.
Tasks
-
+ currentControllerThe currently active SPViewController.
-
+ contextThe currently active OpenGL context.
-
+ jugglerA juggler that is advanced once per frame by the current view controller.
-
+ stageThe stage that is managed by the current view controller.
-
+ rootThe root object of your game, i.e. an instance of the class you passed to the ‘startWithRoot:’ method of SPViewController.
-
+ contentScaleFactorThe content scale factor of the current view controller.
Class Methods
contentScaleFactor
The content scale factor of the current view controller.
+ (float)contentScaleFactorDiscussion
The content scale factor of the current view controller.
Declared In
SparrowClass.hcontext
The currently active OpenGL context.
+ (SPContext *)contextDiscussion
The currently active OpenGL context.
Declared In
SparrowClass.hcurrentController
The currently active SPViewController.
+ (SPViewController *)currentControllerDiscussion
The currently active SPViewController.
Declared In
SparrowClass.hjuggler
A juggler that is advanced once per frame by the current view controller.
+ (SPJuggler *)jugglerDiscussion
A juggler that is advanced once per frame by the current view controller.
Declared In
SparrowClass.hroot
The root object of your game, i.e. an instance of the class you passed to the ‘startWithRoot:’ method of SPViewController.
+ (SPDisplayObject *)rootDiscussion
The root object of your game, i.e. an instance of the class you passed to the ‘startWithRoot:’ method of SPViewController.
Declared In
SparrowClass.h