示例#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);
}
示例#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;
}
示例#3
0
cxAny cxStackTop(cxStack stack)
{
    return cxArrayLast(stack->array);
}
示例#4
0
文件: cxStack.c 项目: caoyu0/cxEngine
cxAny cxStackTop(cxAny pstack)
{
    CX_ASSERT_THIS(pstack, cxStack);
    return cxArrayLast(this->array);
}