vengine  0.1.0
3D graphics engine made with Vulkan
Loading...
Searching...
No Matches
ven::FrameCounter Class Reference

#include <FrameCounter.hpp>

+ Collaboration diagram for ven::FrameCounter:

Public Member Functions

 FrameCounter ()=default
 
 ~FrameCounter ()=default
 
void update (const float deltaTime)
 
float getFps () const
 
float getFrameTime () const
 

Private Attributes

float m_fps {0.F}
 
float m_frameTime {0.F}
 
float m_frameCounter {0.F}
 
float m_timeCounter {0.F}
 

Detailed Description

Definition at line 13 of file FrameCounter.hpp.

Constructor & Destructor Documentation

◆ FrameCounter()

ven::FrameCounter::FrameCounter ( )
default

◆ ~FrameCounter()

ven::FrameCounter::~FrameCounter ( )
default

Member Function Documentation

◆ getFps()

float ven::FrameCounter::getFps ( ) const
inlinenodiscard

Definition at line 33 of file FrameCounter.hpp.

References m_fps.

◆ getFrameTime()

float ven::FrameCounter::getFrameTime ( ) const
inlinenodiscard

Definition at line 34 of file FrameCounter.hpp.

References m_frameTime.

◆ update()

void ven::FrameCounter::update ( const float deltaTime)
inline

Definition at line 20 of file FrameCounter.hpp.

References m_fps, m_frameCounter, m_frameTime, and m_timeCounter.

Member Data Documentation

◆ m_fps

float ven::FrameCounter::m_fps {0.F}
private

Definition at line 38 of file FrameCounter.hpp.

Referenced by getFps(), and update().

◆ m_frameCounter

float ven::FrameCounter::m_frameCounter {0.F}
private

Definition at line 40 of file FrameCounter.hpp.

Referenced by update().

◆ m_frameTime

float ven::FrameCounter::m_frameTime {0.F}
private

Definition at line 39 of file FrameCounter.hpp.

Referenced by getFrameTime(), and update().

◆ m_timeCounter

float ven::FrameCounter::m_timeCounter {0.F}
private

Definition at line 41 of file FrameCounter.hpp.

Referenced by update().


The documentation for this class was generated from the following file: