Inherits from NSObject
Declared in SparrowClass.h

Overview

The Sparrow class provides static convenience methods to access certain properties of the current SPViewController.

Tasks

  • + currentController

    The currently active SPViewController.

  • + context

    The currently active OpenGL context.

  • + juggler

    A juggler that is advanced once per frame by the current view controller.

  • + stage

    The stage that is managed by the current view controller.

  • + root

    The root object of your game, i.e. an instance of the class you passed to the ‘startWithRoot:’ method of SPViewController.

  • + contentScaleFactor

    The content scale factor of the current view controller.

Class Methods

contentScaleFactor

The content scale factor of the current view controller.

+ (float)contentScaleFactor

Discussion

The content scale factor of the current view controller.

Declared In

SparrowClass.h

context

The currently active OpenGL context.

+ (SPContext *)context

Discussion

The currently active OpenGL context.

Declared In

SparrowClass.h

currentController

The currently active SPViewController.

+ (SPViewController *)currentController

Discussion

The currently active SPViewController.

Declared In

SparrowClass.h

juggler

A juggler that is advanced once per frame by the current view controller.

+ (SPJuggler *)juggler

Discussion

A juggler that is advanced once per frame by the current view controller.

Declared In

SparrowClass.h

root

The root object of your game, i.e. an instance of the class you passed to the ‘startWithRoot:’ method of SPViewController.

+ (SPDisplayObject *)root

Discussion

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

stage

The stage that is managed by the current view controller.

+ (SPStage *)stage

Discussion

The stage that is managed by the current view controller.

Declared In

SparrowClass.h