igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
graphic::IModel Interface Referenceabstract

Model interface. More...

#include <IModel.hpp>

Public Member Functions

virtual ~IModel ()=default
 
virtual void setTexture (ITexture *texture)=0
 
virtual void setAnimations (IAnimationSet *animations)=0
 
virtual int getAnimationsSize () const =0
 
virtual void setAnimation (int pos)=0
 
virtual int getAnimation () const =0
 
virtual bool updateAnimation ()=0
 Steps one frame forward inside the current range.
 
virtual void setFrameRange (int first, int last)=0
 Restricts playback to [first, last] of the current clip.
 
virtual int getFirstFrame () const =0
 
virtual int getLastFrame () const =0
 
virtual void setFrame (int frame)=0
 
virtual int getFrame () const =0
 
virtual Vector3f getPosition () const =0
 
virtual void setPosition (Vector3f position)=0
 
virtual Vector3f getRotation () const =0
 
virtual void setRotation (Vector3f rotation)=0
 
virtual Vector3f getSize () const =0
 
virtual void setSize (Vector3f size)=0
 

Detailed Description

Model interface.

Constructor & Destructor Documentation

◆ ~IModel()

virtual graphic::IModel::~IModel ( )
virtualdefault

Member Function Documentation

◆ 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: