(float x, float y)
| 685 | |
| 686 | |
| 687 | public void vertex(float x, float y) { |
| 688 | if (vertices == null) { |
| 689 | vertices = new float[10][2]; |
| 690 | } else if (vertices.length == vertexCount) { |
| 691 | vertices = (float[][]) PApplet.expand(vertices); |
| 692 | } |
| 693 | vertices[vertexCount++] = new float[] { x, y }; |
| 694 | |
| 695 | if (vertexCodes == null) { |
| 696 | vertexCodes = new int[10]; |
| 697 | } else if (vertexCodes.length == vertexCodeCount) { |
| 698 | vertexCodes = PApplet.expand(vertexCodes); |
| 699 | } |
| 700 | vertexCodes[vertexCodeCount++] = VERTEX; |
| 701 | |
| 702 | if (x > width) { |
| 703 | width = x; |
| 704 | } |
| 705 | if (y > height) { |
| 706 | height = y; |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | |
| 711 | public void vertex(float x, float y, float u, float v) { |
no test coverage detected