OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::v1::TimeIndex Class Reference

Time index object used to search keyframe at the given position. More...

#include <OgreAnimationTrack.h>

Public Member Functions

 TimeIndex (Real timePos)
 Construct time index object by the given time position. More...
 
 TimeIndex (Real timePos, uint keyIndex)
 Construct time index object by the given time position and global keyframe index. More...
 
uint getKeyIndex () const
 
Real getTimePos () const
 
bool hasKeyIndex () const
 

Detailed Description

Time index object used to search keyframe at the given position.

Constructor & Destructor Documentation

◆ TimeIndex() [1/2]

Ogre::v1::TimeIndex::TimeIndex ( Real  timePos)
inline

Construct time index object by the given time position.

◆ TimeIndex() [2/2]

Ogre::v1::TimeIndex::TimeIndex ( Real  timePos,
uint  keyIndex 
)
inline

Construct time index object by the given time position and global keyframe index.

Note
In normally, you don't need to use this constructor directly, use Animation::_getTimeIndex instead.

Member Function Documentation

◆ getKeyIndex()

uint Ogre::v1::TimeIndex::getKeyIndex ( ) const
inline

◆ getTimePos()

Real Ogre::v1::TimeIndex::getTimePos ( ) const
inline

◆ hasKeyIndex()

bool Ogre::v1::TimeIndex::hasKeyIndex ( ) const
inline

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