/*************************************************************************
    Constructor
*************************************************************************/
AnimationManager::AnimationManager(void)
{
    char addr_buff[32];
    sprintf(addr_buff, "(%p)", static_cast<void*>(this));
    Logger::getSingleton().logEvent(
        "CEGUI::AnimationManager singleton created " + String(addr_buff));

    // todo: is this too dirty?
#   define addBasicInterpolator(i) { Interpolator* in = i; addInterpolator(in); d_basicInterpolators.push_back(in); }

    // create and add basic interpolators shipped with CEGUI
    addBasicInterpolator(CEGUI_NEW_AO TplDiscreteRelativeInterpolator<String>("String"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<float>("float"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<int>("int"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<uint>("uint"));
    addBasicInterpolator(CEGUI_NEW_AO TplDiscreteInterpolator<bool>("bool"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<Sizef >("Sizef"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<Vector2f >("Vector2f"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<Vector3f >("Vector3f"));
    addBasicInterpolator(CEGUI_NEW_AO QuaternionSlerpInterpolator());
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<Rectf >("Rectf"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<Colour>("Colour"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<ColourRect>("ColourRect"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<UDim>("UDim"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<UVector2>("UVector2"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<URect>("URect"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<UBox>("UBox"));
    addBasicInterpolator(CEGUI_NEW_AO TplLinearInterpolator<USize>("USize"));
}
Exemplo n.º 2
0
/*************************************************************************
    Constructor
*************************************************************************/
AnimationManager::AnimationManager(void)
{
    char addr_buff[32];
    sprintf(addr_buff, "(%p)", static_cast<void*>(this));
    Logger::getSingleton().logEvent(
        "CEGUI::AnimationManager singleton created " + String(addr_buff));

    // todo: is this too dirty?
#   define addBasicInterpolator(i) { Interpolator* in = i; addInterpolator(in); d_basicInterpolators.push_back(in); }

    // create and add basic interpolators shipped with CEGUI
    addBasicInterpolator(new StringInterpolator());
    addBasicInterpolator(new FloatInterpolator());
    addBasicInterpolator(new IntInterpolator());
    addBasicInterpolator(new UintInterpolator());
    addBasicInterpolator(new BoolInterpolator());
    addBasicInterpolator(new SizeInterpolator());
    addBasicInterpolator(new PointInterpolator());
    addBasicInterpolator(new Vector3Interpolator());
    addBasicInterpolator(new RectInterpolator());
    addBasicInterpolator(new ColourInterpolator());
    addBasicInterpolator(new ColourRectInterpolator());
    addBasicInterpolator(new UDimInterpolator());
    addBasicInterpolator(new UVector2Interpolator());
    addBasicInterpolator(new URectInterpolator());
    addBasicInterpolator(new UBoxInterpolator());
}