Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/FrameTime.h |
Include |
#include "Misc/FrameTime.h" |
struct FFrameTime
Structure representing a time by a context-free frame number, plus a sub frame value in the range [0:1) Conversion to and from time in seconds is achieved in combination with FFrameRate. Only the frame number part of this representation can be negative, sub frames are always a positive value between the frame number and its next logical frame
Name | Description | ||
---|---|---|---|
|
FrameNumber |
Name | Description | |
---|---|---|
|
FFrameTime() |
Default constructor initializing to zero |
|
FFrameTime ( |
Implicit construction from a single integer, while disallowing implicit conversion from any other numeric type |
|
FFrameTime ( |
Implicit construction from a type-safe frame number |
|
FFrameTime ( |
Construction from a frame number and a sub frame |
Name | Description | ||
---|---|---|---|
|
double |
AsDecimal() |
Retrieve a decimal representation of this frame time Sub frames are always added to the current frame number, so for negative frame times, a time of -10 [sub frame 0.25] will yield a decimal value of -9.75. |
|
CeilToFrame() |
Return the next frame number greater than or equal to this frame time |
|
|
FloorToFrame() |
Return the first frame number less than or equal to this frame time |
|
|
FromDecimal ( |
Convert a decimal representation to a frame time |
|
|
GetFrame() |
Access this time's frame number |
|
|
float |
GetSubFrame() |
Access this time's sub frame |
|
RoundToFrame() |
Round to the nearest frame number |
Name | Description | ||
---|---|---|---|
|
operator= ( |
Assignment from a type-safe frame number |
Name |
Description |
---|---|
MaxSubframe |