MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / setElementLimit

Method setElementLimit

src/main/java/field/graphics/BaseMesh.java:162–171  ·  view source on GitHub ↗

limit the number of elements sent to OpenGL without truncating the declared size of the storage.

(int limit)

Source from the content-addressed store, hash-verified

160 * limit the number of elements sent to OpenGL without truncating the declared size of the storage.
161 */
162 public void setElementLimit(int limit) {
163 if (elements == null) return;
164
165 if (limit > elements.getSize()) {
166 elements = elements.replaceWithSize(limit);
167 }
168
169 limitElement = limit;
170 maxElement = Math.max(maxElement, limitElement);
171 }
172
173 /**
174 * truncate or extend the size of the meshes element storage

Callers 1

doCloseMethod · 0.80

Calls 3

getSizeMethod · 0.65
replaceWithSizeMethod · 0.65
maxMethod · 0.45

Tested by

no test coverage detected