MCPcopy Index your code
hub / github.com/processing/processing / setAttrib

Method setAttrib

core/src/processing/opengl/PShapeOpenGL.java:1757–1771  ·  view source on GitHub ↗
(String name, int index, float... values)

Source from the content-addressed store, hash-verified

1755
1756
1757 @Override
1758 public void setAttrib(String name, int index, float... values) {
1759 if (openShape) {
1760 PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()");
1761 return;
1762 }
1763
1764 VertexAttribute attrib = attribImpl(name, VertexAttribute.OTHER, PGL.FLOAT,
1765 values.length);
1766 float[] array = inGeo.fattribs.get(name);
1767 for (int i = 0; i < values.length; i++) {
1768 array[attrib.size * index + i] = values[i];
1769 }
1770 markForTessellation();
1771 }
1772
1773
1774 @Override

Callers

nothing calls this directly

Calls 4

showWarningMethod · 0.95
attribImplMethod · 0.95
markForTessellationMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected