C# Класс Nez.FramesPerSecondCounter

Наследование: Text, IUpdatable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
averageFramesPerSecond float
currentFramesPerSecond float
maximumSamples int
totalFrames long

Открытые методы

Метод Описание
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

Описание методов

FramesPerSecondCounter() публичный Метод

public FramesPerSecondCounter ( BitmapFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
font BitmapFont
color Color
dockPosition FPSDockPosition
maximumSamples int
Результат System.Collections.Generic

FramesPerSecondCounter() публичный Метод

public FramesPerSecondCounter ( NezSpriteFont font, Color color, FPSDockPosition dockPosition = FPSDockPosition.TopRight, int maximumSamples = 100 ) : System.Collections.Generic
font NezSpriteFont
color Color
dockPosition FPSDockPosition
maximumSamples int
Результат System.Collections.Generic

IUpdatable() публичный Метод

public IUpdatable ( ) : void
Результат void

debugRender() публичный Метод

public debugRender ( Graphics graphics ) : void
graphics Graphics
Результат void

init() публичный Метод

public init ( ) : void
Результат void

render() публичный Метод

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Результат void

reset() публичный Метод

public reset ( ) : void
Результат void

setDockOffset() публичный Метод

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
Результат FramesPerSecondCounter

setDockPosition() публичный Метод

Sets which corner of the screen the fps text will show.
public setDockPosition ( FPSDockPosition dockPosition ) : FramesPerSecondCounter
dockPosition FPSDockPosition Corner of the screen
Результат FramesPerSecondCounter

updateTextPosition() публичный Метод

public updateTextPosition ( ) : void
Результат void

Описание свойств

averageFramesPerSecond публичное свойство

public float averageFramesPerSecond
Результат float

currentFramesPerSecond публичное свойство

public float currentFramesPerSecond
Результат float

maximumSamples публичное свойство

total number of samples that should be stored and averaged for calculating the FPS
public int maximumSamples
Результат int

totalFrames публичное свойство

public long totalFrames
Результат long