C# Class Nez.FramesPerSecondCounter

Inheritance: Text, IUpdatable
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство Type Description
averageFramesPerSecond float
currentFramesPerSecond float
maximumSamples int
totalFrames long

Méthodes publiques

Méthode Description
FramesPerSecondCounter ( BitmapFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
FramesPerSecondCounter ( NezSpriteFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
IUpdatable ( ) : void
debugRender ( Graphics graphics ) : void
init ( ) : void
render ( Graphics graphics, Camera camera ) : void
reset ( ) : void
setDockOffset ( Vector2 dockOffset ) : FramesPerSecondCounter

Sets how far the fps text will appear from the edges of the screen.

setDockPosition ( FPSDockPosition dockPosition ) : FramesPerSecondCounter

Sets which corner of the screen the fps text will show.

updateTextPosition ( ) : void

Method Details

FramesPerSecondCounter() public méthode

public FramesPerSecondCounter ( BitmapFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
font BitmapFont
color Color
dockPosition FPSDockPosition
maximumSamples int
Résultat System.Collections.Generic

FramesPerSecondCounter() public méthode

public FramesPerSecondCounter ( NezSpriteFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
font NezSpriteFont
color Color
dockPosition FPSDockPosition
maximumSamples int
Résultat System.Collections.Generic

IUpdatable() public méthode

public IUpdatable ( ) : void
Résultat void

debugRender() public méthode

public debugRender ( Graphics graphics ) : void
graphics Graphics
Résultat void

init() public méthode

public init ( ) : void
Résultat void

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Résultat void

reset() public méthode

public reset ( ) : void
Résultat void

setDockOffset() public méthode

Sets how far the fps text will appear from the edges of the screen.
public setDockOffset ( Vector2 dockOffset ) : FramesPerSecondCounter
dockOffset Vector2 Offset from screen edges
Résultat FramesPerSecondCounter

setDockPosition() public méthode

Sets which corner of the screen the fps text will show.
public setDockPosition ( FPSDockPosition dockPosition ) : FramesPerSecondCounter
dockPosition FPSDockPosition Corner of the screen
Résultat FramesPerSecondCounter

updateTextPosition() public méthode

public updateTextPosition ( ) : void
Résultat void

Property Details

averageFramesPerSecond public_oe property

public float averageFramesPerSecond
Résultat float

currentFramesPerSecond public_oe property

public float currentFramesPerSecond
Résultat float

maximumSamples public_oe property

total number of samples that should be stored and averaged for calculating the FPS
public int maximumSamples
Résultat int

totalFrames public_oe property

public long totalFrames
Résultat long