2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-08-17 07:47:37 +01:00
< meta name = "generator" content = "ZealOS V1.00" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-07-29 03:20:15 +01:00
body {background-color:#fef1f0;}
.cF0{color:#000000;background-color:#fef1f0;}
.cF1{color:#0148a4;background-color:#fef1f0;}
.cF2{color:#3b7901;background-color:#fef1f0;}
.cF3{color:#057c7e;background-color:#fef1f0;}
.cF4{color:#bb2020;background-color:#fef1f0;}
.cF5{color:#9e42ae;background-color:#fef1f0;}
.cF6{color:#b57901;background-color:#fef1f0;}
.cF7{color:#b2b6af;background-color:#fef1f0;}
.cF8{color:#555753;background-color:#fef1f0;}
.cF9{color:#678fbb;background-color:#fef1f0;}
.cFA{color:#82bc49;background-color:#fef1f0;}
.cFB{color:#0097a2;background-color:#fef1f0;}
.cFC{color:#e26a6a;background-color:#fef1f0;}
.cFD{color:#c671bc;background-color:#fef1f0;}
.cFE{color:#c7ab00;background-color:#fef1f0;}
.cFF{color:#fef1f0;background-color:#fef1f0;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 05:07:57 +01:00
< a name = "l1" > < / a > < span class = cF0 > #< / span > < span class = cF1 > help_index< / span > < span class = cF0 > < / span > < span class = cF6 > " Graphics/Sprite;Sprites" < / span > < span class = cF0 >
< a name = "l2" > < / a >
< a name = "l3" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > SpriteElem2Code< / span > < span class = cF0 > (< / span > < span class = cF9 > CDoc< / span > < span class = cF0 > *doc, < / span > < span class = cF9 > CSprite< / span > < span class = cF0 > *tmpg)
< a name = "l4" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l5" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > buf1[< / span > < span class = cF3 > STR_LEN< / span > < span class = cF0 > ], buf2[< / span > < span class = cF3 > STR_LEN< / span > < span class = cF0 > ];
< a name = "l6" > < / a > < / span > < span class = cF9 > I32< / span > < span class = cF0 > *ptr;
< a name = "l7" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, j, k, col, width_internal;
< a name = "l8" > < / a > < / span > < span class = cF9 > CD3I32< / span > < span class = cF0 > *p;
< a name = "l9" > < / a > < / span > < span class = cF9 > CMeshTri< / span > < span class = cF0 > *tri;
2021-07-03 05:07:57 +01:00
< a name = "l10" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l11" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!doc)
< a name = "l12" > < / a > doc = < / span > < span class = cF5 > DocPut< / span > < span class = cF0 > ;
< a name = "l13" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " %Z" < / span > < span class = cF0 > , tmpg-> type & < / span > < span class = cF3 > SPG_TYPE_MASK< / span > < span class = cF0 > , < / span > < span class = cF6 > " ST_SPRITE_ELEM_CODES" < / span > < span class = cF0 > );
< a name = "l14" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (tmpg-> type & < / span > < span class = cF3 > SPG_TYPE_MASK< / span > < span class = cF0 > )
< a name = "l15" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l16" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_COLOR< / span > < span class = cF0 > :
< a name = "l17" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {%s}" < / span > < span class = cF0 > , < / span > < span class = cF5 > Color2Str< / span > < span class = cF7 > (< / span > < span class = cF0 > buf1, tmpg-> c.color< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l18" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l19" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l20" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_DITHER_COLOR< / span > < span class = cF0 > :
< a name = "l21" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {%s}" < / span > < span class = cF0 > , < / span > < span class = cF5 > Color2Str< / span > < span class = cF7 > (< / span > < span class = cF0 > buf2,
< a name = "l22" > < / a > < / span > < span class = cF3 > ROPF_DITHER< / span > < span class = cF0 > | tmpg-> d.dither_color.u8[< / span > < span class = cFE > 0< / span > < span class = cF0 > ] | tmpg-> d.dither_color.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] < < < / span > < span class = cF3 > COLORROP_BITS< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l23" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l24" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l25" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TRANSFORM_ON< / span > < span class = cF0 > :
< a name = "l26" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {ON}" < / span > < span class = cF0 > );
< a name = "l27" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l28" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l29" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TRANSFORM_OFF< / span > < span class = cF0 > :
< a name = "l30" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {OFF}" < / span > < span class = cF0 > );
< a name = "l31" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l32" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l33" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_LINE< / span > < span class = cF0 > :
< a name = "l34" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ARROW< / span > < span class = cF0 > :
< a name = "l35" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_PLANAR_SYMMETRY< / span > < span class = cF0 > :
< a name = "l36" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d),(%d,%d)}" < / span > < span class = cF0 > , tmpg-> pp.x1, tmpg-> pp.y1, tmpg-> pp.x2, tmpg-> pp.y2);
< a name = "l37" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l38" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l39" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_RECT< / span > < span class = cF0 > :
< a name = "l40" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d):(%d,%d)}" < / span > < span class = cF0 > , tmpg-> pp.x1, tmpg-> pp.y1,
< a name = "l41" > < / a > tmpg-> pp.x2 - tmpg-> pp.x1, tmpg-> pp.y2 - tmpg-> pp.y1);
< a name = "l42" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l43" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l44" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ROTATED_RECT< / span > < span class = cF0 > :
< a name = "l45" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d):(%d,%d),%0.4f}" < / span > < span class = cF0 > , tmpg-> ppa.x1, tmpg-> ppa.y1,
< a name = "l46" > < / a > tmpg-> ppa.x2 - tmpg-> ppa.x1, tmpg-> ppa.y2 - tmpg-> ppa.y1,
< a name = "l47" > < / a > < / span > < span class = cFE > 180< / span > < span class = cF0 > / < / span > < span class = cF3 > pi< / span > < span class = cF0 > * < / span > < span class = cF5 > Wrap< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpg-> ppa.angle< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l48" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l49" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l50" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_PT< / span > < span class = cF0 > :
< a name = "l51" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_FLOOD_FILL< / span > < span class = cF0 > :
< a name = "l52" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_SHIFT< / span > < span class = cF0 > :
< a name = "l53" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d)}" < / span > < span class = cF0 > , tmpg-> p.x1, tmpg-> p.y1);
< a name = "l54" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l55" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l56" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_FLOOD_FILL_NOT< / span > < span class = cF0 > :
< a name = "l57" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d),TRUE}" < / span > < span class = cF0 > , tmpg-> p.x1, tmpg-> p.y1);
< a name = "l58" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l59" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l60" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_CIRCLE< / span > < span class = cF0 > :
< a name = "l61" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d):%d}" < / span > < span class = cF0 > , tmpg-> pr.x1, tmpg-> pr.y1, tmpg-> pr.radius);
< a name = "l62" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l63" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l64" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_THICK< / span > < span class = cF0 > :
< a name = "l65" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {%d}" < / span > < span class = cF0 > , tmpg-> t.thick);
< a name = "l66" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l67" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l68" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ELLIPSE< / span > < span class = cF0 > :
< a name = "l69" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d):(%d,%d),%0.4f}" < / span > < span class = cF0 > , tmpg-> pwha.x1, tmpg-> pwha.y1, tmpg-> pwha.width, tmpg-> pwha.height,
< a name = "l70" > < / a > < / span > < span class = cFE > 180< / span > < span class = cF0 > / < / span > < span class = cF3 > pi< / span > < span class = cF0 > * < / span > < span class = cF5 > Wrap< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpg-> pwha.angle< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l71" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l72" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l73" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYGON< / span > < span class = cF0 > :
< a name = "l74" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {%d,(%d,%d):(%d,%d),%0.4f}" < / span > < span class = cF0 > , tmpg-> pwhas.sides, tmpg-> pwhas.x1, tmpg-> pwhas.y1,
< a name = "l75" > < / a > tmpg-> pwhas.width, tmpg-> pwhas.height,
< a name = "l76" > < / a > < / span > < span class = cFE > 180< / span > < span class = cF0 > / < / span > < span class = cF3 > pi< / span > < span class = cF0 > * < / span > < span class = cF5 > Wrap< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpg-> pwhas.angle< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l77" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l78" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l79" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT< / span > < span class = cF0 > :
< a name = "l80" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT_BOX< / span > < span class = cF0 > :
< a name = "l81" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT_DIAMOND< / span > < span class = cF0 > :
< a name = "l82" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d),\" %Q\" }" < / span > < span class = cF0 > , tmpg-> ps.x1, tmpg-> ps.y1, tmpg-> ps.st);
< a name = "l83" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l84" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l85" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYLINE< / span > < span class = cF0 > :
< a name = "l86" > < / a > ptr = & tmpg-> nu.u;
< a name = "l87" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {" < / span > < span class = cF0 > );
< a name = "l88" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> nu.num; i++, ptr += < / span > < span class = cFE > 2< / span > < span class = cF0 > )
< a name = "l89" > < / a > {
< a name = "l90" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%d,%d)" < / span > < span class = cF0 > , ptr[< / span > < span class = cFE > 0< / span > < span class = cF0 > ], ptr[< / span > < span class = cFE > 1< / span > < span class = cF0 > ]);
< a name = "l91" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> nu.num)
< a name = "l92" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l93" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i & < / span > < span class = cFE > 3< / span > < span class = cF0 > == < / span > < span class = cFE > 3< / span > < span class = cF0 > & & i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> nu.num)
< a name = "l94" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l95" > < / a > }
< a name = "l96" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l97" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l98" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l99" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > :
< a name = "l100" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE3< / span > < span class = cF0 > :
< a name = "l101" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE2_CLOSED< / span > < span class = cF0 > :
< a name = "l102" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE3_CLOSED< / span > < span class = cF0 > :
< a name = "l103" > < / a > ptr = & tmpg-> nu.u;
< a name = "l104" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {" < / span > < span class = cF0 > );
< a name = "l105" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> nu.num; i++, ptr += < / span > < span class = cFE > 3< / span > < span class = cF0 > )
< a name = "l106" > < / a > {
< a name = "l107" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%d,%d,%d)" < / span > < span class = cF0 > , ptr[< / span > < span class = cFE > 0< / span > < span class = cF0 > ], ptr[< / span > < span class = cFE > 1< / span > < span class = cF0 > ], ptr[< / span > < span class = cFE > 2< / span > < span class = cF0 > ]);
< a name = "l108" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> nu.num)
< a name = "l109" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l110" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i & < / span > < span class = cFE > 3< / span > < span class = cF0 > == < / span > < span class = cFE > 3< / span > < span class = cF0 > & & i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> nu.num)
< a name = "l111" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l112" > < / a > }
< a name = "l113" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (tmpg-> type & < / span > < span class = cF3 > SPG_TYPE_MASK< / span > < span class = cF0 > == < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > || tmpg-> type & < / span > < span class = cF3 > SPG_TYPE_MASK< / span > < span class = cF0 > == < / span > < span class = cF3 > SPT_BSPLINE3< / span > < span class = cF0 > )
< a name = "l114" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ,FALSE}" < / span > < span class = cF0 > );
< a name = "l115" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l116" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ,TRUE}" < / span > < span class = cF0 > );
< a name = "l117" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l118" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l119" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYPT< / span > < span class = cF0 > :
< a name = "l120" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d)," < / span > < span class = cF0 > , tmpg-> npu.x, tmpg-> npu.y);
< a name = "l121" > < / a > ptr = & tmpg-> npu.u;
< a name = "l122" > < / a > col = < / span > < span class = cFE > 16< / span > < span class = cF0 > ;
< a name = "l123" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i= < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> npu.num; i++)
< a name = "l124" > < / a > {
< a name = "l125" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " %d" < / span > < span class = cF0 > , < / span > < span class = cF5 > BFieldExtU32< / span > < span class = cF7 > (< / span > < span class = cF0 > ptr, i * < / span > < span class = cFE > 3< / span > < span class = cF0 > , < / span > < span class = cFE > 3< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l126" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col > = < / span > < span class = cFE > 64< / span > < span class = cF0 > & & i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> npu.num)
< a name = "l127" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l128" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l129" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l130" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l131" > < / a > }
< a name = "l132" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l133" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l134" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l135" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BITMAP< / span > < span class = cF0 > :
< a name = "l136" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {(%d,%d):(%d,%d),\n" < / span > < span class = cF0 > , tmpg-> pwhu.x1, tmpg-> pwhu.y1, tmpg-> pwhu.width, tmpg-> pwhu.height);
< a name = "l137" > < / a > width_internal = (tmpg-> pwhu.width + < / span > < span class = cFE > 7< / span > < span class = cF0 > ) & ~< / span > < span class = cFE > 7< / span > < span class = cF0 > ;
< a name = "l138" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (width_internal < < / span > < span class = cFE > 80< / span > < span class = cF0 > )
< a name = "l139" > < / a > k = width_internal;
< a name = "l140" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l141" > < / a > k = < / span > < span class = cFE > 64< / span > < span class = cF0 > ;
< a name = "l142" > < / a > ptr = & tmpg-> pwhu.u;
< a name = "l143" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l144" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (j = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; j < tmpg-> pwhu.height; j++)
< a name = "l145" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < width_internal; i++, ptr< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > ++)
< a name = "l146" > < / a > {
< a name = "l147" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i > = tmpg-> pwhu.width)
< a name = "l148" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " _" < / span > < span class = cF0 > );
< a name = "l149" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (*ptr< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > < < / span > < span class = cFE > 16< / span > < span class = cF0 > )
< a name = "l150" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " %X" < / span > < span class = cF0 > , *ptr< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l151" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l152" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " " < / span > < span class = cF0 > );
< a name = "l153" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col > = k & & < / span > < span class = cF7 > (< / span > < span class = cF0 > i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < width_internal || j + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> pwhu.height< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l154" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l155" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l156" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l157" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l158" > < / a > }
< a name = "l159" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l160" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l161" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l162" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_MESH< / span > < span class = cF0 > :
< a name = "l163" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {FALSE," < / span > < span class = cF0 > );
< a name = "l164" > < / a > p = & tmpg-> mu.u;
< a name = "l165" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l166" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> mu.vertex_count; i++, p++)
< a name = "l167" > < / a > {
< a name = "l168" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%d,%d,%d)" < / span > < span class = cF0 > , p-> x, p-> y, p-> z);
< a name = "l169" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> mu.vertex_count)
< a name = "l170" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l171" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col == < / span > < span class = cFE > 4< / span > < span class = cF0 > ) < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l172" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \t//%d\n" < / span > < span class = cF0 > , i);
< a name = "l173" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l174" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l175" > < / a > }
< a name = "l176" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " :" < / span > < span class = cF0 > );
< a name = "l177" > < / a > tri = p;
< a name = "l178" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> mu.tri_count; i++, tri++)
< a name = "l179" > < / a > {
< a name = "l180" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%s,%d,%d,%d)" < / span > < span class = cF0 > , < / span > < span class = cF5 > Color2Str< / span > < span class = cF7 > (< / span > < span class = cF0 > buf1, tri-> color< / span > < span class = cF7 > )< / span > < span class = cF0 > , tri-> nums[< / span > < span class = cFE > 0< / span > < span class = cF0 > ], tri-> nums[< / span > < span class = cFE > 1< / span > < span class = cF0 > ], tri-> nums[< / span > < span class = cFE > 2< / span > < span class = cF0 > ]);
< a name = "l181" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> mu.tri_count)
< a name = "l182" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l183" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col > = < / span > < span class = cFE > 3< / span > < span class = cF0 > & & i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> mu.tri_count)
< a name = "l184" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l185" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l186" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l187" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l188" > < / a > }
< a name = "l189" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l190" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l191" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l192" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_SHIFTABLE_MESH< / span > < span class = cF0 > :
< a name = "l193" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " {TRUE,(%d,%d,%d):" < / span > < span class = cF0 > , tmpg-> pmu.x, tmpg-> pmu.y, tmpg-> pmu.z);
< a name = "l194" > < / a > p = & tmpg-> pmu.u;
< a name = "l195" > < / a > col = < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l196" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> pmu.vertex_count; i++, p++)
< a name = "l197" > < / a > {
< a name = "l198" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%d,%d,%d)" < / span > < span class = cF0 > , p-> x, p-> y, p-> z);
< a name = "l199" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> pmu.vertex_count)
< a name = "l200" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l201" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col == < / span > < span class = cFE > 4< / span > < span class = cF0 > )
< a name = "l202" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l203" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \t//%d\n" < / span > < span class = cF0 > , i);
< a name = "l204" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l205" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l206" > < / a > }
< a name = "l207" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " :" < / span > < span class = cF0 > );
< a name = "l208" > < / a > tri = p;
< a name = "l209" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < tmpg-> pmu.tri_count; i++, tri++)
< a name = "l210" > < / a > {
< a name = "l211" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " (%s,%d,%d,%d)" < / span > < span class = cF0 > , < / span > < span class = cF5 > Color2Str< / span > < span class = cF7 > (< / span > < span class = cF0 > buf1, tri-> color< / span > < span class = cF7 > )< / span > < span class = cF0 > , tri-> nums[< / span > < span class = cFE > 0< / span > < span class = cF0 > ], tri-> nums[< / span > < span class = cFE > 1< / span > < span class = cF0 > ], tri-> nums[< / span > < span class = cFE > 2< / span > < span class = cF0 > ]);
< a name = "l212" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> pmu.tri_count)
< a name = "l213" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l214" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (++col > = < / span > < span class = cFE > 3< / span > < span class = cF0 > & & i + < / span > < span class = cFE > 1< / span > < span class = cF0 > < tmpg-> pmu.tri_count)
< a name = "l215" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l216" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " \n" < / span > < span class = cF0 > );
< a name = "l217" > < / a > col = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l218" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l219" > < / a > }
< a name = "l220" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l221" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l222" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l223" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (doc, < / span > < span class = cF6 > " ;\n" < / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l224" > < / a > }
< a name = "l225" > < / a >
< a name = "l226" > < / a > < / span > < span class = cF1 > public< / span > < span class = cF0 > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > Sprite2Code< / span > < span class = cF0 > (< / span > < span class = cF9 > CDoc< / span > < span class = cF0 > *doc=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > , < / span > < span class = cF1 > U8< / span > < span class = cF0 > *elems)
< a name = "l227" > < / a > {< / span > < span class = cF2 > //Sprite to text.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l228" > < / a > < / span > < span class = cF9 > CSprite< / span > < span class = cF0 > *tmpg = elems - < / span > < span class = cF1 > offset< / span > < span class = cF0 > (< / span > < span class = cF9 > CSprite< / span > < span class = cF0 > .< / span > < span class = cF1 > start< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l229" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l230" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpg-> type & < / span > < span class = cF3 > SPG_TYPE_MASK< / span > < span class = cF0 > )
< a name = "l231" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l232" > < / a > < / span > < span class = cF5 > SpriteElem2Code< / span > < span class = cF0 > (doc, tmpg);
< a name = "l233" > < / a > tmpg(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += < / span > < span class = cF5 > SpriteElemSize< / span > < span class = cF0 > (tmpg);
< a name = "l234" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l235" > < / a > }
< a name = "l236" > < / a >
< a name = "l237" > < / a > < / span > < span class = cF9 > CSprite< / span > < span class = cF0 > *< / span > < span class = cF5 > Code2SpriteElem< / span > < span class = cF0 > (< / span > < span class = cF9 > CCompCtrl< / span > < span class = cF0 > *cc, < / span > < span class = cF9 > I64< / span > < span class = cF0 > type)
< a name = "l238" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l239" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, num1, num2, size;
< a name = "l240" > < / a > < / span > < span class = cF9 > CSprite< / span > < span class = cF0 > *res, g;
< a name = "l241" > < / a > < / span > < span class = cF9 > CColorROPU32< / span > < span class = cF0 > color;
< a name = "l242" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *st, *ptr;
< a name = "l243" > < / a > < / span > < span class = cF9 > CQueueD3I32< / span > < span class = cF0 > headp, *tmpp, *tmpa1;
< a name = "l244" > < / a > < / span > < span class = cF9 > CQueueMeshTri< / span > < span class = cF0 > headt, *tmpt, *tmpt1;
< a name = "l245" > < / a > < / span > < span class = cF9 > CQueueVectU8< / span > < span class = cF0 > *tmpv;
2021-07-03 05:07:57 +01:00
< a name = "l246" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l247" > < / a > < / span > < span class = cF5 > MemSet< / span > < span class = cF0 > (& g, < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CSprite< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l248" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (type)
< a name = "l249" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l250" > < / a > < / span > < span class = cF1 > start< / span > < span class = cF0 > :
< a name = "l251" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_COLOR< / span > < span class = cF0 > :
< a name = "l252" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_DITHER_COLOR< / span > < span class = cF0 > :
< a name = "l253" > < / a > st = < / span > < span class = cF5 > LexFirstRemove< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " }" < / span > < span class = cF0 > );
< a name = "l254" > < / a > color = < / span > < span class = cF5 > Str2ColorU32< / span > < span class = cF0 > (st);
< a name = "l255" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st);
< a name = "l256" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip color< / span > < span class = cF0 >
< a name = "l257" > < / a > g.c.color = color.c0.color;
< a name = "l258" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (color & < / span > < span class = cF3 > ROPF_DITHER< / span > < span class = cF0 > )
< a name = "l259" > < / a > {
< a name = "l260" > < / a > g.d.dither_color.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = color.c1.color;
< a name = "l261" > < / a > g.type = < / span > < span class = cF3 > SPT_DITHER_COLOR< / span > < span class = cF0 > ;
< a name = "l262" > < / a > }
< a name = "l263" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l264" > < / a > g.type = < / span > < span class = cF3 > SPT_COLOR< / span > < span class = cF0 > ;
< a name = "l265" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l266" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l267" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TRANSFORM_ON< / span > < span class = cF0 > :
< a name = "l268" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TRANSFORM_OFF< / span > < span class = cF0 > :
< a name = "l269" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l270" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l271" > < / a > g.type = < / span > < span class = cF3 > SPT_TRANSFORM_ON< / span > < span class = cF0 > ;
< a name = "l272" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l273" > < / a > g.type = < / span > < span class = cF3 > SPT_TRANSFORM_OFF< / span > < span class = cF0 > ;
< a name = "l274" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l275" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l276" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_LINE< / span > < span class = cF0 > :
< a name = "l277" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ARROW< / span > < span class = cF0 > :
< a name = "l278" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_PLANAR_SYMMETRY< / span > < span class = cF0 > :
< a name = "l279" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l280" > < / a > g.type = type;
< a name = "l281" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pp.x1);
< a name = "l282" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l283" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l284" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l285" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pp.x2);
< a name = "l286" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l287" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l288" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_RECT< / span > < span class = cF0 > :
< a name = "l289" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ROTATED_RECT< / span > < span class = cF0 > :
< a name = "l290" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l291" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pp.x1);
< a name = "l292" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l293" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l294" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l295" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pp.x2);
< a name = "l296" > < / a > g.ppa.x2 += g.pp.x1;
< a name = "l297" > < / a > g.ppa.y2 += g.pp.y1;
< a name = "l298" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l299" > < / a > {
< a name = "l300" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l301" > < / a > g.ppa.angle = < / span > < span class = cF3 > pi< / span > < span class = cF0 > / < / span > < span class = cFE > 180< / span > < span class = cF0 > * < / span > < span class = cF5 > LexExpressionF64< / span > < span class = cF0 > (cc);
< a name = "l302" > < / a > g.type = < / span > < span class = cF3 > SPT_ROTATED_RECT< / span > < span class = cF0 > ;
< a name = "l303" > < / a > }
< a name = "l304" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l305" > < / a > g.type = < / span > < span class = cF3 > SPT_RECT< / span > < span class = cF0 > ;
< a name = "l306" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l307" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l308" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_PT< / span > < span class = cF0 > :
< a name = "l309" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_SHIFT< / span > < span class = cF0 > :
< a name = "l310" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l311" > < / a > g.type = type;
< a name = "l312" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.p.x1);
< a name = "l313" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l314" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l315" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_FLOOD_FILL< / span > < span class = cF0 > :
< a name = "l316" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_FLOOD_FILL_NOT< / span > < span class = cF0 > :
< a name = "l317" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l318" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.p.x1);
< a name = "l319" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l320" > < / a > {
< a name = "l321" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l322" > < / a > i = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l323" > < / a > }
< a name = "l324" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l325" > < / a > i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l326" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i)
< a name = "l327" > < / a > g.type = < / span > < span class = cF3 > SPT_FLOOD_FILL_NOT< / span > < span class = cF0 > ;
< a name = "l328" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l329" > < / a > g.type = < / span > < span class = cF3 > SPT_FLOOD_FILL< / span > < span class = cF0 > ;
< a name = "l330" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l331" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l332" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_THICK< / span > < span class = cF0 > :
< a name = "l333" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l334" > < / a > g.t.thick = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l335" > < / a > g.type = < / span > < span class = cF3 > SPT_THICK< / span > < span class = cF0 > ;
< a name = "l336" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l337" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l338" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_CIRCLE< / span > < span class = cF0 > :
< a name = "l339" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l340" > < / a > g.type = < / span > < span class = cF3 > SPT_CIRCLE< / span > < span class = cF0 > ;
< a name = "l341" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pr.x1);
< a name = "l342" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l343" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l344" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l345" > < / a > g.pr.radius = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l346" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l347" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l348" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYGON< / span > < span class = cF0 > :
< a name = "l349" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l350" > < / a > g.pwhas.sides = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l351" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l352" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l353" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l354" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_ELLIPSE< / span > < span class = cF0 > :
< a name = "l355" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l356" > < / a > g.type = type;
< a name = "l357" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pwha.x1);
< a name = "l358" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l359" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l360" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l361" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pwha.width);
< a name = "l362" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l363" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l364" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l365" > < / a > g.pwha.angle = < / span > < span class = cF3 > pi< / span > < span class = cF0 > / < / span > < span class = cFE > 180< / span > < span class = cF0 > * < / span > < span class = cF5 > LexExpressionF64< / span > < span class = cF0 > (cc);
< a name = "l366" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l367" > < / a > < / span > < span class = cF1 > end< / span > < span class = cF0 > :
< a name = "l368" > < / a > size = < / span > < span class = cF5 > SpriteElemSize< / span > < span class = cF0 > (& g) + < / span > < span class = cF1 > offset< / span > < span class = cF0 > (< / span > < span class = cF9 > CSprite< / span > < span class = cF0 > .< / span > < span class = cF1 > start< / span > < span class = cF0 > );
< a name = "l369" > < / a > res = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size);
< a name = "l370" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l371" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l372" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l373" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT< / span > < span class = cF0 > :
< a name = "l374" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT_BOX< / span > < span class = cF0 > :
< a name = "l375" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_TEXT_DIAMOND< / span > < span class = cF0 > :
< a name = "l376" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l377" > < / a > g.type = type;
< a name = "l378" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.ps.x1);
< a name = "l379" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l380" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l381" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Lex< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > == < / span > < span class = cF3 > TK_STR< / span > < span class = cF0 > ) < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l382" > < / a > st = < / span > < span class = cF5 > LexExtStr< / span > < span class = cF0 > (cc);
< a name = "l383" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l384" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting string at " < / span > < span class = cF0 > );
< a name = "l385" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (type);
< a name = "l386" > < / a > i = < / span > < span class = cF5 > StrLen< / span > < span class = cF0 > (st) + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l387" > < / a > res = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size + i);
< a name = "l388" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l389" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > + size, st, i);
< a name = "l390" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st);
< a name = "l391" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l392" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l393" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYLINE< / span > < span class = cF0 > :
< a name = "l394" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l395" > < / a > g.type = < / span > < span class = cF3 > SPT_POLYLINE< / span > < span class = cF0 > ;
< a name = "l396" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& headp);
< a name = "l397" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > '('< / span > < span class = cF0 > ) {
< a name = "l398" > < / a > tmpp = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CQueueD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l399" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & tmpp-> p);
< a name = "l400" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpp, headp.last);
< a name = "l401" > < / a > g.nu.num++;
< a name = "l402" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l403" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l404" > < / a > }
< a name = "l405" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (g.nu.num < < / span > < span class = cFE > 2< / span > < span class = cF0 > )
< a name = "l406" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting point at " < / span > < span class = cF0 > );
< a name = "l407" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (< / span > < span class = cF3 > SPT_POLYLINE< / span > < span class = cF0 > );
< a name = "l408" > < / a > res = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size + g.nu.num * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD2I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l409" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l410" > < / a > ptr = & res-> nu.u;
< a name = "l411" > < / a > tmpp = headp.next;
< a name = "l412" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpp != & headp)
< a name = "l413" > < / a > {
< a name = "l414" > < / a > tmpa1 = tmpp-> next;
< a name = "l415" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (ptr, & tmpp-> p, < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD2I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l416" > < / a > ptr += < / span > < span class = cF1 > sizeof< / span > < span class = cF0 > (< / span > < span class = cF9 > CD2I32< / span > < span class = cF0 > );
< a name = "l417" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpp);
< a name = "l418" > < / a > tmpp = tmpa1;
< a name = "l419" > < / a > }
< a name = "l420" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l421" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l422" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > :
< a name = "l423" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE3< / span > < span class = cF0 > :
< a name = "l424" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE2_CLOSED< / span > < span class = cF0 > :
< a name = "l425" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BSPLINE3_CLOSED< / span > < span class = cF0 > :
< a name = "l426" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l427" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& headp);
< a name = "l428" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > '('< / span > < span class = cF0 > ) {
< a name = "l429" > < / a > tmpp = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CQueueD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l430" > < / a > < / span > < span class = cF5 > LexD3I32< / span > < span class = cF0 > (cc, & tmpp-> p);
< a name = "l431" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpp, headp.last);
< a name = "l432" > < / a > g.nu.num++;
< a name = "l433" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l434" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l435" > < / a > }
< a name = "l436" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (g.nu.num < < / span > < span class = cFE > 2< / span > < span class = cF0 > )
< a name = "l437" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting point at " < / span > < span class = cF0 > );
< a name = "l438" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (type);
< a name = "l439" > < / a > res = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size + g.nu.num * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l440" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l441" > < / a > {
< a name = "l442" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (type == < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > || type == < / span > < span class = cF3 > SPT_BSPLINE2_CLOSED< / span > < span class = cF0 > )
< a name = "l443" > < / a > g.type = < / span > < span class = cF3 > SPT_BSPLINE2_CLOSED< / span > < span class = cF0 > ;
< a name = "l444" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l445" > < / a > g.type = < / span > < span class = cF3 > SPT_BSPLINE3_CLOSED< / span > < span class = cF0 > ;
< a name = "l446" > < / a > }
< a name = "l447" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l448" > < / a > {
< a name = "l449" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (type == < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > || type == < / span > < span class = cF3 > SPT_BSPLINE2_CLOSED< / span > < span class = cF0 > )
< a name = "l450" > < / a > g.type = < / span > < span class = cF3 > SPT_BSPLINE2< / span > < span class = cF0 > ;
< a name = "l451" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l452" > < / a > g.type = < / span > < span class = cF3 > SPT_BSPLINE3< / span > < span class = cF0 > ;
< a name = "l453" > < / a > }
< a name = "l454" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l455" > < / a > ptr = & res-> nu.u;
< a name = "l456" > < / a > tmpp = headp.next;
< a name = "l457" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpp != & headp)
< a name = "l458" > < / a > {
< a name = "l459" > < / a > tmpa1 = tmpp-> next;
< a name = "l460" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (ptr, & tmpp-> p, < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l461" > < / a > ptr += < / span > < span class = cF1 > sizeof< / span > < span class = cF0 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF0 > );
< a name = "l462" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpp);
< a name = "l463" > < / a > tmpp = tmpa1;
< a name = "l464" > < / a > }
< a name = "l465" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l466" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l467" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_POLYPT< / span > < span class = cF0 > :
< a name = "l468" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l469" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.npu.x);
< a name = "l470" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l471" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l472" > < / a > tmpv = < / span > < span class = cF5 > QueueVectU8New< / span > < span class = cF0 > ;
< a name = "l473" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (< / span > < span class = cF3 > TRUE< / span > < span class = cF0 > )
< a name = "l474" > < / a > {
< a name = "l475" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF7 > (< / span > < span class = cF0 > i = < / span > < span class = cF5 > LexCharGet< / span > < span class = cF0 > (cc)< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l476" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting '}' at " < / span > < span class = cF0 > );
< a name = "l477" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i == < / span > < span class = cF6 > '}'< / span > < span class = cF0 > )
< a name = "l478" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l479" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF6 > '0'< / span > < span class = cF0 > < = i < = < / span > < span class = cF6 > '7'< / span > < span class = cF0 > )
< a name = "l480" > < / a > < / span > < span class = cF5 > QueueVectU8Put< / span > < span class = cF0 > (tmpv, g.npu.num++, i - < / span > < span class = cF6 > '0'< / span > < span class = cF0 > );
< a name = "l481" > < / a > }
< a name = "l482" > < / a > < / span > < span class = cF5 > Bts< / span > < span class = cF0 > (& cc-> flags, < / span > < span class = cF3 > CCf_USE_LAST_U16< / span > < span class = cF0 > );
< a name = "l483" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Load '}'< / span > < span class = cF0 >
< a name = "l484" > < / a > g.type = < / span > < span class = cF3 > SPT_POLYPT< / span > < span class = cF0 > ;
< a name = "l485" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (< / span > < span class = cF3 > SPT_POLYPT< / span > < span class = cF0 > );
< a name = "l486" > < / a > res = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (size+< / span > < span class = cF7 > (< / span > < span class = cF0 > g.npu.num * < / span > < span class = cFE > 3< / span > < span class = cF0 > + < / span > < span class = cFE > 7< / span > < span class = cF0 > < / span > < span class = cF7 > )< / span > < span class = cF0 > > > < / span > < span class = cFE > 3< / span > < span class = cF0 > );
< a name = "l487" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l488" > < / a > ptr = & res-> npu.u;
< a name = "l489" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < g.npu.num; i++)
< a name = "l490" > < / a > < / span > < span class = cF5 > BFieldOrU32< / span > < span class = cF0 > (ptr, i * < / span > < span class = cFE > 3< / span > < span class = cF0 > , < / span > < span class = cF5 > QueueVectU8Get< / span > < span class = cF7 > (< / span > < span class = cF0 > tmpv, i< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l491" > < / a > < / span > < span class = cF5 > QueueVectU8Del< / span > < span class = cF0 > (tmpv);
< a name = "l492" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l493" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l494" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_BITMAP< / span > < span class = cF0 > :
< a name = "l495" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l496" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pwhu.x1);
< a name = "l497" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l498" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l499" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l500" > < / a > < / span > < span class = cF5 > LexD2I32< / span > < span class = cF0 > (cc, & g.pwhu.width);
< a name = "l501" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l502" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l503" > < / a > tmpv = < / span > < span class = cF5 > QueueVectU8New< / span > < span class = cF0 > ;
< a name = "l504" > < / a > num1 = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l505" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (< / span > < span class = cF3 > TRUE< / span > < span class = cF0 > )
< a name = "l506" > < / a > {
< a name = "l507" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF7 > (< / span > < span class = cF0 > i = < / span > < span class = cF5 > ToUpper< / span > < span class = cF0 > (< / span > < span class = cF5 > LexCharGet< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > )< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l508" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting '}' at " < / span > < span class = cF0 > );
< a name = "l509" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i == < / span > < span class = cF6 > '}'< / span > < span class = cF0 > )
< a name = "l510" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l511" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF6 > '0'< / span > < span class = cF0 > < = i < = < / span > < span class = cF6 > '9'< / span > < span class = cF0 > )
< a name = "l512" > < / a > < / span > < span class = cF5 > QueueVectU8Put< / span > < span class = cF0 > (tmpv, num1++, i - < / span > < span class = cF6 > '0'< / span > < span class = cF0 > );
< a name = "l513" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF6 > 'A'< / span > < span class = cF0 > < = i < = < / span > < span class = cF6 > 'F'< / span > < span class = cF0 > )
< a name = "l514" > < / a > < / span > < span class = cF5 > QueueVectU8Put< / span > < span class = cF0 > (tmpv, num1++, i - < / span > < span class = cF6 > 'A'< / span > < span class = cF0 > + < / span > < span class = cFE > 10< / span > < span class = cF0 > );
< a name = "l515" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i == < / span > < span class = cF3 > CH_SPACE< / span > < span class = cF0 > )
< a name = "l516" > < / a > < / span > < span class = cF5 > QueueVectU8Put< / span > < span class = cF0 > (tmpv, num1++, < / span > < span class = cF3 > TRANSPARENT< / span > < span class = cF0 > );
< a name = "l517" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i == < / span > < span class = cF6 > '_'< / span > < span class = cF0 > )
< a name = "l518" > < / a > < / span > < span class = cF5 > QueueVectU8Put< / span > < span class = cF0 > (tmpv, num1++, < / span > < span class = cFE > 0< / span > < span class = cF0 > );
< a name = "l519" > < / a > }
< a name = "l520" > < / a > < / span > < span class = cF5 > Bts< / span > < span class = cF0 > (& cc-> flags, < / span > < span class = cF3 > CCf_USE_LAST_U16< / span > < span class = cF0 > );
< a name = "l521" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Load '}'< / span > < span class = cF0 >
< a name = "l522" > < / a > g.type = < / span > < span class = cF3 > SPT_BITMAP< / span > < span class = cF0 > ;
< a name = "l523" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (< / span > < span class = cF3 > SPT_BITMAP< / span > < span class = cF0 > );
< a name = "l524" > < / a > res = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (size + num1);
< a name = "l525" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l526" > < / a > ptr = & res-> pwhu.u;
< a name = "l527" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < num1; i++)
< a name = "l528" > < / a > *ptr++ = < / span > < span class = cF5 > QueueVectU8Get< / span > < span class = cF0 > (tmpv, i);
< a name = "l529" > < / a > < / span > < span class = cF5 > QueueVectU8Del< / span > < span class = cF0 > (tmpv);
< a name = "l530" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l531" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l532" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_MESH< / span > < span class = cF0 > :
< a name = "l533" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > SPT_SHIFTABLE_MESH< / span > < span class = cF0 > :
< a name = "l534" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip {< / span > < span class = cF0 >
< a name = "l535" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l536" > < / a > {
< a name = "l537" > < / a > g.type = < / span > < span class = cF3 > SPT_SHIFTABLE_MESH< / span > < span class = cF0 > ;
< a name = "l538" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l539" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l540" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l541" > < / a > < / span > < span class = cF5 > LexD3I32< / span > < span class = cF0 > (cc, & g.pmu.x);
< a name = "l542" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l543" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l544" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l545" > < / a > }
< a name = "l546" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l547" > < / a > {
< a name = "l548" > < / a > g.type = < / span > < span class = cF3 > SPT_MESH< / span > < span class = cF0 > ;
< a name = "l549" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l550" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l551" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l552" > < / a > }
< a name = "l553" > < / a > num1 = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l554" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& headp);
< a name = "l555" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > '('< / span > < span class = cF0 > )
< a name = "l556" > < / a > {
< a name = "l557" > < / a > tmpp = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CQueueD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l558" > < / a > < / span > < span class = cF5 > LexD3I32< / span > < span class = cF0 > (cc, & tmpp-> p);
< a name = "l559" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpp, headp.last);
< a name = "l560" > < / a > num1++;
< a name = "l561" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l562" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l563" > < / a > }
< a name = "l564" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ':'< / span > < span class = cF0 > )
< a name = "l565" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ':' at " < / span > < span class = cF0 > );
< a name = "l566" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip :< / span > < span class = cF0 >
< a name = "l567" > < / a > num2 = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l568" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& headt);
< a name = "l569" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > '('< / span > < span class = cF0 > ) {
< a name = "l570" > < / a > tmpt = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CQueueMeshTri< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l571" > < / a > st = < / span > < span class = cF5 > LexFirstRemove< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " ," < / span > < span class = cF0 > );
< a name = "l572" > < / a > tmpt-> color = < / span > < span class = cF5 > Str2ColorU32< / span > < span class = cF0 > (st);
< a name = "l573" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st);
< a name = "l574" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip color< / span > < span class = cF0 >
< a name = "l575" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l576" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l577" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l578" > < / a > tmpt-> nums[< / span > < span class = cFE > 0< / span > < span class = cF0 > ] = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l579" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l580" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l581" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l582" > < / a > tmpt-> nums[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l583" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l584" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ',' at " < / span > < span class = cF0 > );
< a name = "l585" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip , < / span > < span class = cF0 >
< a name = "l586" > < / a > tmpt-> nums[< / span > < span class = cFE > 2< / span > < span class = cF0 > ] = < / span > < span class = cF5 > LexExpressionI64< / span > < span class = cF0 > (cc);
< a name = "l587" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > ')'< / span > < span class = cF0 > )
< a name = "l588" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ')' at " < / span > < span class = cF0 > );
< a name = "l589" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip )< / span > < span class = cF0 >
< a name = "l590" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (tmpt, headt.last);
< a name = "l591" > < / a > num2++;
< a name = "l592" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token == < / span > < span class = cF6 > ','< / span > < span class = cF0 > )
< a name = "l593" > < / a > < / span > < span class = cF5 > Lex< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //Skip ,< / span > < span class = cF0 >
< a name = "l594" > < / a > }
< a name = "l595" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (g.type == < / span > < span class = cF3 > SPT_MESH< / span > < span class = cF0 > )
< a name = "l596" > < / a > {
< a name = "l597" > < / a > g.mu.vertex_count = num1;
< a name = "l598" > < / a > g.mu.tri_count = num2;
< a name = "l599" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (< / span > < span class = cF3 > SPT_MESH< / span > < span class = cF0 > );
< a name = "l600" > < / a > }
< a name = "l601" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l602" > < / a > {
< a name = "l603" > < / a > g.pmu.vertex_count = num1;
< a name = "l604" > < / a > g.pmu.tri_count = num2;
< a name = "l605" > < / a > }
< a name = "l606" > < / a > size = < / span > < span class = cF5 > SpriteElemQueuedBaseSize< / span > < span class = cF0 > (g.type);
< a name = "l607" > < / a > res = < / span > < span class = cF5 > MAlloc< / span > < span class = cF0 > (size + num1 * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > + num2 * < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CMeshTri< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l608" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (res, & g, size);
< a name = "l609" > < / a > ptr = res(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) + size;
< a name = "l610" > < / a > tmpp = headp.next;
< a name = "l611" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpp != & headp)
< a name = "l612" > < / a > {
< a name = "l613" > < / a > tmpa1 = tmpp-> next;
< a name = "l614" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (ptr, & tmpp-> p, < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l615" > < / a > ptr += < / span > < span class = cF1 > sizeof< / span > < span class = cF0 > (< / span > < span class = cF9 > CD3I32< / span > < span class = cF0 > );
< a name = "l616" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpp);
< a name = "l617" > < / a > tmpp = tmpa1;
< a name = "l618" > < / a > }
< a name = "l619" > < / a > tmpt = headt.next;
< a name = "l620" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (tmpt != & headt)
< a name = "l621" > < / a > {
< a name = "l622" > < / a > tmpt1 = tmpt-> next;
< a name = "l623" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (ptr, & tmpt-> < / span > < span class = cF1 > start< / span > < span class = cF0 > , < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF9 > CMeshTri< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l624" > < / a > ptr += < / span > < span class = cF1 > sizeof< / span > < span class = cF0 > (< / span > < span class = cF9 > CMeshTri< / span > < span class = cF0 > );
< a name = "l625" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (tmpt);
< a name = "l626" > < / a > tmpt = tmpt1;
< a name = "l627" > < / a > }
< a name = "l628" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l629" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l630" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token != < / span > < span class = cF6 > '}'< / span > < span class = cF0 > )
< a name = "l631" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting '}' at " < / span > < span class = cF0 > );
< a name = "l632" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Lex< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > != < / span > < span class = cF6 > ';'< / span > < span class = cF0 > )
< a name = "l633" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting ';' at " < / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l634" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l635" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > res;
2021-07-03 05:07:57 +01:00
< a name = "l636" > < / a > }
< a name = "l637" > < / a >
< a name = "l638" > < / a > < / span > < span class = cF1 > public< / span > < span class = cF0 > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF5 > Code2Sprite< / span > < span class = cF0 > (< / span > < span class = cF9 > CDoc< / span > < span class = cF0 > *doc, < / span > < span class = cF9 > I64< / span > < span class = cF0 > *_size=< / span > < span class = cF3 > NULL< / span > < span class = cF0 > )
< a name = "l639" > < / a > {< / span > < span class = cF2 > //Text to sprite.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l640" > < / a > < / span > < span class = cF9 > CSprite< / span > < span class = cF0 > head;
< a name = "l641" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *res;
< a name = "l642" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > okay = < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > , unlock_doc = < / span > < span class = cF5 > DocLock< / span > < span class = cF0 > (doc);
< a name = "l643" > < / a > < / span > < span class = cF9 > CCompCtrl< / span > < span class = cF0 > *cc = < / span > < span class = cF5 > CompCtrlNew< / span > < span class = cF0 > (, < / span > < span class = cF3 > CCF_DONT_FREE_BUF< / span > < span class = cF0 > );
< a name = "l644" > < / a > < / span > < span class = cF9 > CHashTable< / span > < span class = cF0 > *old_hash_table_list = cc-> htc.hash_table_list;
< a name = "l645" > < / a > < / span > < span class = cF9 > CHashGeneric< / span > < span class = cF0 > *tmph;
< a name = "l646" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, size = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l647" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l648" > < / a > < / span > < span class = cF5 > QueueInit< / span > < span class = cF0 > (& head);
< a name = "l649" > < / a > < / span > < span class = cF5 > LexAttachDoc< / span > < span class = cF0 > (cc,, doc);
< a name = "l650" > < / a > < / span > < span class = cF1 > try< / span > < span class = cF0 >
< a name = "l651" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l652" > < / a > < / span > < span class = cF1 > do< / span > < span class = cF0 >
< a name = "l653" > < / a > {
< a name = "l654" > < / a > cc-> htc.hash_table_list = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l655" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Lex< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > == < / span > < span class = cF3 > TK_IDENT< / span > < span class = cF0 > < / span > < span class = cF2 > /*Skip ; */< / span > < span class = cF0 > & & < / span > < span class = cF7 > (< / span > < span class = cF0 > tmph = < / span > < span class = cF5 > HashFind< / span > < span class = cF0 > (cc-> cur_str, < / span > < span class = cFB > gr< / span > < span class = cF0 > .sprite_hash, < / span > < span class = cF3 > SPHT_ELEM_CODE< / span > < span class = cF0 > )< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l656" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l657" > < / a > i = tmph-> user_data0;
< a name = "l658" > < / a > cc-> htc.hash_table_list = old_hash_table_list;
< a name = "l659" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Lex< / span > < span class = cF7 > (< / span > < span class = cF0 > cc< / span > < span class = cF7 > )< / span > < span class = cF0 > == < / span > < span class = cF6 > '{'< / span > < span class = cF0 > ) < / span > < span class = cF2 > //Skip ident< / span > < span class = cF0 >
< a name = "l660" > < / a > < / span > < span class = cF5 > QueueInsert< / span > < span class = cF0 > (< / span > < span class = cF5 > Code2SpriteElem< / span > < span class = cF7 > (< / span > < span class = cF0 > cc, i< / span > < span class = cF7 > )< / span > < span class = cF0 > , head.last);
< a name = "l661" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l662" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cc-> token)
< a name = "l663" > < / a > < / span > < span class = cF5 > LexExcept< / span > < span class = cF0 > (cc, < / span > < span class = cF6 > " Expecting sprite element type name at " < / span > < span class = cF0 > );
< a name = "l664" > < / a > }
< a name = "l665" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (cc-> token);
2021-07-03 05:07:57 +01:00
< a name = "l666" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l667" > < / a > okay = < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l668" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l669" > < / a > < / span > < span class = cF1 > catch< / span > < span class = cF0 >
< a name = "l670" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l671" > < / a > < / span > < span class = cF5 > Fs< / span > < span class = cF0 > -> catch_except = < / span > < span class = cF3 > TRUE< / span > < span class = cF0 > ;
< a name = "l672" > < / a > okay = < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
< a name = "l673" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l674" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (unlock_doc)
< a name = "l675" > < / a > < / span > < span class = cF5 > DocUnlock< / span > < span class = cF0 > (doc);
< a name = "l676" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (okay)
< a name = "l677" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l678" > < / a > < / span > < span class = cF5 > CompCtrlDel< / span > < span class = cF0 > (cc); < / span > < span class = cF2 > //TODO: can crash< / span > < span class = cF0 >
< a name = "l679" > < / a > res = < / span > < span class = cF5 > SpriteQueue2Sprite< / span > < span class = cF0 > (& head, & size);
< a name = "l680" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l681" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l682" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l683" > < / a > res = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
< a name = "l684" > < / a > size = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l685" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l686" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (_size)
< a name = "l687" > < / a > *_size = size;
< a name = "l688" > < / a > < / span > < span class = cF5 > QueueDel< / span > < span class = cF0 > (& head);
2021-07-03 05:07:57 +01:00
< a name = "l689" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l690" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > res;
2021-07-03 05:07:57 +01:00
< a name = "l691" > < / a > }
< / span > < / pre > < / body >
< / html >