Class FPSCounter

Inheritance Relationships

Base Type

Class Documentation

class FPSCounter : public BlamRendering::RenderStack::StackObjectBase

Class used for the FPS counter.

Public Functions

FPSCounter()

Prepares the FPS counter.

~FPSCounter()

Cleans up any resources used by the FPS counter.

void Draw()

Draws the FPS counter onscreen.

Text color will be changed depending on the framerate:

  • More than 30 FPS - Green

  • More than 15 FPS - Yellow

  • Less than 15 FPS - Red

void ShowImPropertyEditor()

Shows a set of ImGUI properties associated with the object.

This will call functions to draw only the property controls for the item, and nothing else. The window/container for the properties must be handled externally.