Model interface.
More...
#include <IModel.hpp>
◆ ~IModel()
| virtual graphic::IModel::~IModel |
( |
| ) |
|
|
virtualdefault |
◆ getAnimation()
| virtual int graphic::IModel::getAnimation |
( |
| ) |
const |
|
pure virtual |
◆ getAnimationsSize()
| virtual int graphic::IModel::getAnimationsSize |
( |
| ) |
const |
|
pure virtual |
◆ getFirstFrame()
| virtual int graphic::IModel::getFirstFrame |
( |
| ) |
const |
|
pure virtual |
◆ getFrame()
| virtual int graphic::IModel::getFrame |
( |
| ) |
const |
|
pure virtual |
◆ getLastFrame()
| virtual int graphic::IModel::getLastFrame |
( |
| ) |
const |
|
pure virtual |
◆ getPosition()
| virtual Vector3f graphic::IModel::getPosition |
( |
| ) |
const |
|
pure virtual |
◆ getRotation()
| virtual Vector3f graphic::IModel::getRotation |
( |
| ) |
const |
|
pure virtual |
◆ getSize()
| virtual Vector3f graphic::IModel::getSize |
( |
| ) |
const |
|
pure virtual |
◆ setAnimation()
| virtual void graphic::IModel::setAnimation |
( |
int |
pos | ) |
|
|
pure virtual |
◆ setAnimations()
| virtual void graphic::IModel::setAnimations |
( |
IAnimationSet * |
animations | ) |
|
|
pure virtual |
◆ setFrame()
| virtual void graphic::IModel::setFrame |
( |
int |
frame | ) |
|
|
pure virtual |
◆ setFrameRange()
| virtual void graphic::IModel::setFrameRange |
( |
int |
first, |
|
|
int |
last |
|
) |
| |
|
pure virtual |
Restricts playback to [first, last] of the current clip.
A Mixamo export often bakes every move into a single clip : this is where "run" gets cut from "jump". Both bounds are clamped to the clip, and setAnimation() resets them.
◆ setPosition()
| virtual void graphic::IModel::setPosition |
( |
Vector3f |
position | ) |
|
|
pure virtual |
◆ setRotation()
| virtual void graphic::IModel::setRotation |
( |
Vector3f |
rotation | ) |
|
|
pure virtual |
◆ setSize()
| virtual void graphic::IModel::setSize |
( |
Vector3f |
size | ) |
|
|
pure virtual |
◆ setTexture()
| virtual void graphic::IModel::setTexture |
( |
ITexture * |
texture | ) |
|
|
pure virtual |
◆ updateAnimation()
| virtual bool graphic::IModel::updateAnimation |
( |
| ) |
|
|
pure virtual |
Steps one frame forward inside the current range.
- Returns
- true when the range has just wrapped (so "the
animation is over") - that is what makes play-once possible.
The documentation for this interface was generated from the following file: