#include "jp/ggaf/dxcore/actor/supporter/GgafDxAlphaFader.h"

#include "jp/ggaf/dxcore/actor/GgafDxFigureActor.h"

using namespace GgafCore;
using namespace GgafDxCore;

GgafDxAlphaFader::GgafDxAlphaFader(GgafDxFigureActor* prm_pActor) : GgafValueEnveloper<float, 1 > (),
_pActor(prm_pActor) {
    setRange(0.0f, 1.0f);
}
void GgafDxAlphaFader::reset() {
    GgafValueEnveloper<float, 1 >::reset();
    setRange(0.0f, 1.0f);
}

float GgafDxAlphaFader::getValue(int idx) {
    return _pActor->getAlpha();
}
void GgafDxAlphaFader::setValue(int idx, float value) {
    _pActor->setAlpha(value);
}

GgafDxAlphaFader::~GgafDxAlphaFader() {
}
