(int cap)
| 2355 | |
| 2356 | |
| 2357 | @Override |
| 2358 | public void setStrokeCap(int cap) { |
| 2359 | if (openShape) { |
| 2360 | PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setStrokeCap()"); |
| 2361 | return; |
| 2362 | } |
| 2363 | |
| 2364 | if (family == GROUP) { |
| 2365 | for (int i = 0; i < childCount; i++) { |
| 2366 | PShapeOpenGL child = (PShapeOpenGL) children[i]; |
| 2367 | child.setStrokeCap(cap); |
| 2368 | } |
| 2369 | } else { |
| 2370 | if (is2D() && strokeCap != cap) { |
| 2371 | // Changing the stroke cap on a 2D shape needs a |
| 2372 | // re-tessellation in order to replace the old cap |
| 2373 | // geometry. |
| 2374 | markForTessellation(); |
| 2375 | } |
| 2376 | strokeCap = cap; |
| 2377 | } |
| 2378 | } |
| 2379 | |
| 2380 | |
| 2381 | @Override |
no test coverage detected