Skip to content

D0E92FD9

Marcel Härtel edited this page Aug 27, 2023 · 2 revisions

FPSCounter Class

Definition

Namespace: MonoGame.Forms.NET.Components
Assembly: MonoGame.Forms.NET (in MonoGame.Forms.NET.dll) Version: 3.2.0

C#

public class FPSCounter : IGameComponent, IUpdateable, 
	IDrawable
Inheritance Object → FPSCounter
Implements IDrawable, IGameComponent, IUpdateable

Constructors

FPSCounter Initializes a new instance of the FPSCounter class

Properties

DisplayBackColor Set the back color of the integrated display.
DisplayForeColor Set the font color of the integrated display.
DrawOrder  
Enabled  
GetFrameRate Get the current frames per second (FPS).
SetDisplayStyle Directly sets the FPSCounter.DisplayStyle of the integrated display.
ShowCamPosition Show or hide the 'cam position' of the corresponding control / window.
ShowCursorPosition Show or hide the 'cursor position' of the corresponding control / window.
ShowFPS Show or hide the 'FPS' (frames per second) of the corresponding control / window.
UpdateOrder  
Visible  

Methods

Draw  
Initialize  
Update  

Events

DrawOrderChanged  
EnabledChanged  
UpdateOrderChanged  
VisibleChanged  

See Also

Reference

MonoGame.Forms.NET.Components Namespace

Clone this wiki locally