C# 클래스 Nez.FramesPerSecondCounter

상속: Text, IUpdatable
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
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