示例#1
0
CX_SETTER_DEF(cxSpline, points)
{
    cxJson points = cxJsonToArray(value);
    CX_JSON_ARRAY_EACH_BEG(points, item)
    {
        cxVec2f point = cxJsonToVec2f(item, cxVec2fv(0, 0));
        cxSplineAppend(this, point);
    }
示例#2
0
CX_SETTER_DEF(cxScale, scale)
{
    this->newScale = cxJsonToVec2f(value, this->newScale);
}
示例#3
0
文件: cxMove.c 项目: caoyu0/cxEngine
CX_SETTER_DEF(cxMove, to)
{
    this->to = cxJsonToVec2f(value, this->to);
}