@@ -241,13 +241,13 @@ function __CleanClassConvex(_array) constructor
241
241
_ny2 = _tmp*_n;
242
242
_ds2 = dot_product (_x2, _y2, _nx2, _ny2);
243
243
244
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
245
- vertex_position_3d (_vbuff, _x01 - _nx1, _y01 - _ny1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
246
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
244
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
245
+ vertex_position_3d (_vbuff, _x01, _y01, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
246
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
247
247
248
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
249
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
250
- vertex_position_3d (_vbuff, _x12 - _nx2, _y12 - _ny2, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
248
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
249
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
250
+ vertex_position_3d (_vbuff, _x12, _y12, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
251
251
252
252
_i = (_i + 2 ) mod _size;
253
253
}
@@ -381,13 +381,13 @@ function __CleanClassConvex(_array) constructor
381
381
_border_c12 = merge_colour (_border_c1, _border_c2, 0.5 );
382
382
_border_a12 = 0.5 *(_border_a1 + _border_a2);
383
383
384
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
385
- vertex_position_3d (_vbuff, _x01 - _nx1, _y01 - _ny1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c01)/255 , colour_get_green (_border_c01)/255 , colour_get_blue (_border_c01)/255 , _border_a01); vertex_texcoord (_vbuff, _rounding, _borderThickness);
386
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
384
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
385
+ vertex_position_3d (_vbuff, _x01, _y01, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c01)/255 , colour_get_green (_border_c01)/255 , colour_get_blue (_border_c01)/255 , _border_a01); vertex_texcoord (_vbuff, _rounding, _borderThickness);
386
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
387
387
388
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
389
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
390
- vertex_position_3d (_vbuff, _x12 - _nx2, _y12 - _ny2, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c12)/255 , colour_get_green (_border_c12)/255 , colour_get_blue (_border_c12)/255 , _border_a12); vertex_texcoord (_vbuff, _rounding, _borderThickness);
388
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
389
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
390
+ vertex_position_3d (_vbuff, _x12, _y12, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _colour, _alpha); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c12)/255 , colour_get_green (_border_c12)/255 , colour_get_blue (_border_c12)/255 , _border_a12); vertex_texcoord (_vbuff, _rounding, _borderThickness);
391
391
392
392
_i = (_i + 2 ) mod _size;
393
393
}
@@ -511,13 +511,13 @@ function __CleanClassConvex(_array) constructor
511
511
_ny2 = _tmp*_n;
512
512
_ds2 = dot_product (_x2, _y2, _nx2, _ny2);
513
513
514
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc , _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
515
- vertex_position_3d (_vbuff, _x01 - _nx1, _y01 - _ny1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c01, _a01); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
516
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1 , _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
514
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc, _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
515
+ vertex_position_3d (_vbuff, _x01, _y01, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c01, _a01); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
516
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1, _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
517
517
518
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc , _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
519
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1 , _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
520
- vertex_position_3d (_vbuff, _x12 - _nx2, _y12 - _ny2, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c12, _a12); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
518
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc, _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
519
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1, _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
520
+ vertex_position_3d (_vbuff, _x12, _y12, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c12, _a12); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, _border_r, _border_g, _border_b, _border_a); vertex_texcoord (_vbuff, _rounding, _borderThickness);
521
521
522
522
_i = (_i + 2 ) mod _size;
523
523
}
@@ -686,13 +686,13 @@ function __CleanClassConvex(_array) constructor
686
686
_border_c12 = merge_colour (_border_c1, _border_c2, 0.5 );
687
687
_border_a12 = 0.5 *(_border_a1 + _border_a2);
688
688
689
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc , _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
690
- vertex_position_3d (_vbuff, _x01 - _nx1, _y01 - _ny1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c01, _a01); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c01)/255 , colour_get_green (_border_c01)/255 , colour_get_blue (_border_c01)/255 , _border_a01); vertex_texcoord (_vbuff, _rounding, _borderThickness);
691
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1 , _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
689
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc, _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
690
+ vertex_position_3d (_vbuff, _x01, _y01, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c01, _a01); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c01)/255 , colour_get_green (_border_c01)/255 , colour_get_blue (_border_c01)/255 , _border_a01); vertex_texcoord (_vbuff, _rounding, _borderThickness);
691
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1, _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
692
692
693
- vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc , _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
694
- vertex_position_3d (_vbuff, _x1 - (_nx1 + _nx2), _y1 - (_ny1 + _ny2), 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1 , _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
695
- vertex_position_3d (_vbuff, _x12 - _nx2, _y12 - _ny2, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c12, _a12); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c12)/255 , colour_get_green (_border_c12)/255 , colour_get_blue (_border_c12)/255 , _border_a12); vertex_texcoord (_vbuff, _rounding, _borderThickness);
693
+ vertex_position_3d (_vbuff, _cx, _cy, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _cc, _ac ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_cc )/255 , colour_get_green (_border_cc )/255 , colour_get_blue (_border_cc )/255 , _border_ac ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
694
+ vertex_position_3d (_vbuff, _x1, _y1, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c1, _a1 ); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c1 )/255 , colour_get_green (_border_c1 )/255 , colour_get_blue (_border_c1 )/255 , _border_a1 ); vertex_texcoord (_vbuff, _rounding, _borderThickness);
695
+ vertex_position_3d (_vbuff, _x12, _y12, 6 ); vertex_normal (_vbuff, _nx1, _ny1, _ds1); vertex_colour (_vbuff, _c12, _a12); vertex_float3 (_vbuff, _nx2, _ny2, _ds2); vertex_float4 (_vbuff, colour_get_red (_border_c12)/255 , colour_get_green (_border_c12)/255 , colour_get_blue (_border_c12)/255 , _border_a12); vertex_texcoord (_vbuff, _rounding, _borderThickness);
696
696
697
697
_i = (_i + 2 ) mod _size;
698
698
}
0 commit comments