engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
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. 更多...

#include <FrameTime.h>

Public 成员函数

double AsDecimal () const
 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.
 
FFrameNumber CeilToFrame () const
 Return the next frame number greater than or equal to this frame time
 
 FFrameTime ()
 Default constructor initializing to zero
 
 FFrameTime (FFrameNumber InFrameNumber)
 Implicit construction from a type-safe frame number
 
 FFrameTime (FFrameNumber InFrameNumber, float InSubFrame)
 Construction from a frame number and a sub frame
 
template<typename T , typename = typename TEnableIf<TIsSame<T, int32>::Value>::Type>
 FFrameTime (T InFrameNumber)
 Implicit construction from a single integer, while disallowing implicit conversion from any other numeric type
 
FFrameNumber FloorToFrame () const
 Return the first frame number less than or equal to this frame time
 
FORCEINLINE FFrameNumber GetFrame () const
 Access this time's frame number
 
FORCEINLINE float GetSubFrame () const
 Access this time's sub frame
 
FFrameTime & operator= (FFrameNumber InFrameNumber)
 Assignment from a type-safe frame number
 
FFrameNumber RoundToFrame () const
 Round to the nearest frame number
 

静态 Public 成员函数

static FFrameTime FromDecimal (double InDecimalFrame)
 Convert a decimal representation to a frame time Note that sub frames are always positive, so negative decimal representations result in an inverted sub frame and floored frame number
 

详细描述

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


该结构体的文档由以下文件生成: