C# Class SparrowSharp.Utils.StatsDisplay

The statistics display is used internally by Sparrow to display statistical information. Use the 'ShowStats()' method of 'ViewController' to show it. _This is an internal class. You do not have to use it manually._
Inheritance: Sparrow.Display.Sprite
Show file Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Properties

Property Type Description
FramesPerSecond double
NumDrawCalls int

Public Methods

Method Description
OnAddedToStage ( DisplayObject target, DisplayObject currentTarget ) : void
OnEnterFrame ( DisplayObject target, float passedTime ) : void
StatsDisplay ( ) : System
Update ( ) : void

Method Details

OnAddedToStage() public method

public OnAddedToStage ( DisplayObject target, DisplayObject currentTarget ) : void
target Sparrow.Display.DisplayObject
currentTarget Sparrow.Display.DisplayObject
return void

OnEnterFrame() public method

public OnEnterFrame ( DisplayObject target, float passedTime ) : void
target Sparrow.Display.DisplayObject
passedTime float
return void

StatsDisplay() public method

public StatsDisplay ( ) : System
return System

Update() public method

public Update ( ) : void
return void

Property Details

FramesPerSecond public property

The actual frame rate, i.e. the number of frames rendered per second.
public double FramesPerSecond
return double

NumDrawCalls public property

The number of draw calls per frame.
public int NumDrawCalls
return int