libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::application::FrameInfo Struct Reference

Transient information about the current frame of an Application. More...

#include <donut/application/FrameInfo.hpp>

Public Attributes

float tickInterpolationAlpha
 The ratio of the latest processed tick's importance compared to the tick processed before it, for use when interpolating data between the two. More...
 
Time< float > elapsedTime
 The time, in seconds, that had elapsed since the start of the application at the beginning of the current frame. More...
 
Time< float > deltaTime
 The time, in seconds, elapsed between the beginning of the previous frame and the beginning of the current frame. More...
 

Detailed Description

Transient information about the current frame of an Application.

Examples
example_game.cpp, and example_rectangle.cpp.

Member Data Documentation

◆ tickInterpolationAlpha

float donut::application::FrameInfo::tickInterpolationAlpha

The ratio of the latest processed tick's importance compared to the tick processed before it, for use when interpolating data between the two.

Examples
example_game.cpp.

◆ elapsedTime

Time<float> donut::application::FrameInfo::elapsedTime

The time, in seconds, that had elapsed since the start of the application at the beginning of the current frame.

Examples
example_game.cpp.

◆ deltaTime

Time<float> donut::application::FrameInfo::deltaTime

The time, in seconds, elapsed between the beginning of the previous frame and the beginning of the current frame.

Examples
example_game.cpp.

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