1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Ogre::AnimationState *mAnimState;
mAnimState = qOgreGL->pAnimationStatePlayer;
float dureeAnimation = mAnimState->getLength();
qDebug() << "------------ time anim : "<< dureeAnimation ;
//sliderAnim->setRange(0, dureeAnimation);
sliderAnim->setRange(0, dureeAnimation);
sliderAnim->setValue(0);
sliderAnim->singleStep(dureeAnimation / 10);
//sliderAnim->setPageStep(dureeAnimation / 100);
qDebug() << "------------ time anim : "<< dureeAnimation ;
qDebug() << "------------ time anim : "<< (dureeAnimation / 100) ; |