Exemple #1
0
void plLeafController::setEaseControllers(const hsTArray<class plEaseController*>& controllers) {
    DeallocControllers();
    AllocControllers(controllers.getSize());
    for (size_t i=0; i<controllers.getSize(); i++)
        fEaseControllers[i] = controllers[i];
}
Exemple #2
0
plLeafController::~plLeafController() {
    DeallocKeys();
    DeallocControllers();
}
void plLeafController::setEaseControllers(const std::vector<class plEaseController*>& controllers) {
    DeallocControllers();
    AllocControllers(controllers.size());
    for (size_t i=0; i<controllers.size(); i++)
        *fEaseControllers[i] = *controllers[i];
}
Exemple #4
0
void plLeafController::AllocControllers(unsigned int numControllers) {
    DeallocControllers();
    fEaseControllers.setSizeNull(numControllers);
    for (size_t i=0; i<fEaseControllers.getSize(); i++)
        fEaseControllers[i] = new plEaseController();
}
void plLeafController::AllocControllers(unsigned int numControllers) {
    DeallocControllers();
    fEaseControllers.resize(numControllers);
    for (size_t i=0; i<numControllers; i++)
        fEaseControllers[i] = new plEaseController();
}