limit the number of elements sent to OpenGL without truncating the declared size of the storage.
(int limit)
| 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 |
no test coverage detected