CubbyFlowSharp::Frame Struct Reference
Representation of an animation frame. More...
#include <API/CSharp/Animation/Frame.h>
Public Member Functions | |
| Frame () | |
| Constructs Frame instance with 1/60 seconds time interval. More... | |
| Frame (int newIndex, double newTimeIntervalInSeconds) | |
| Constructs Frame instance with given time interval. More... | |
| ::CubbyFlow::Frame * | GetInteralPtr () |
| Returns internal pointer. More... | |
| double | TimeInSeconds () |
| Returns the elapsed time in seconds. More... | |
| void | Advance (int delta) |
Protected Attributes | |
| ::CubbyFlow::Frame * | m_pFrame |
Detailed Description
Representation of an animation frame.
This struct holds current animation frame index and frame interval in seconds.
Constructor & Destructor Documentation
◆ Frame() [1/2]
| CubbyFlowSharp::Frame::Frame | ( | ) |
Constructs Frame instance with 1/60 seconds time interval.
◆ Frame() [2/2]
| CubbyFlowSharp::Frame::Frame | ( | int | newIndex, |
| double | newTimeIntervalInSeconds | ||
| ) |
Constructs Frame instance with given time interval.
Member Function Documentation
◆ Advance()
| void CubbyFlowSharp::Frame::Advance | ( | int | delta | ) |
Advances multiple frames.
- Parameters
-
delta Number of frames to advance.
◆ GetInteralPtr()
| ::CubbyFlow::Frame* CubbyFlowSharp::Frame::GetInteralPtr | ( | ) |
Returns internal pointer.
◆ TimeInSeconds()
| double CubbyFlowSharp::Frame::TimeInSeconds | ( | ) |
Returns the elapsed time in seconds.
Member Data Documentation
◆ m_pFrame
|
protected |
The documentation for this struct was generated from the following file:
- API/CSharp/Animation/Frame.h
1.8.14