Beispiel #1
0
void cxTimeLineAdd(cxAny pav,cxFloat add)
{
    cxTimeLine this = pav;
    cxFloat time = add;
    cxNumber last = cxArrayLast(this->times);
    if(last != NULL){
        time += cxNumberToFloat(last);
    }
    cxTimeLineSet(pav, time);
}
Beispiel #2
0
static void cxTimeLineInit(cxAny pav)
{
    cxTimeLine this = pav;
    cxNumber last = cxArrayLast(this->times);
    if(last == NULL){
        cxActionStop(this);
        return;
    }
    this->cxAction.duration = cxNumberToFloat(last) + 1.0f;
    this->index = -1;
}
Beispiel #3
0
cxAny cxStackTop(cxStack stack)
{
    return cxArrayLast(stack->array);
}
Beispiel #4
0
cxAny cxStackTop(cxAny pstack)
{
    CX_ASSERT_THIS(pstack, cxStack);
    return cxArrayLast(this->array);
}