/** Removes all glyphs in the cache. */ public void clear () { x = 0; y = 0; Pools.freeAll(pooledLayouts, true); pooledLayouts.clear(); layouts.clear(); for (int i = 0, n = idx.length; i < n; i++) { if (pageGlyphIndices != null) pageGlyphIndices[i].clear(); idx[i] = 0; } }
/** Removes all glyphs in the cache. */ public void clear () { x = 0; y = 0; Pools.freeAll(pooledLayouts, true); pooledLayouts.clear(); layouts.clear(); for (int i = 0, n = idx.length; i < n; i++) { if (pageGlyphIndices != null) pageGlyphIndices[i].clear(); idx[i] = 0; } }
public void end () { if (iterating == 0) throw new IllegalStateException("begin must be called before end."); iterating--; if (iterating == 0) { if (clear > 0 && clear == size) { remove.clear(); clear(); } else { for (int i = 0, n = remove.size; i < n; i++) { int index = remove.pop(); if (index >= clear) removeIndex(index); } for (int i = clear - 1; i >= 0; i--) removeIndex(i); } clear = 0; } }
public void end () { if (iterating == 0) throw new IllegalStateException("begin must be called before end."); iterating--; if (iterating == 0) { if (clear > 0 && clear == size) { remove.clear(); clear(); } else { for (int i = 0, n = remove.size; i < n; i++) { int index = remove.pop(); if (index >= clear) removeIndex(index); } for (int i = clear - 1; i >= 0; i--) removeIndex(i); } clear = 0; } }
private final int[] getAttributeLocations (final VertexAttributes attrs) { tempArray.clear(); final int n = attrs.size(); for (int i = 0; i < n; i++) { tempArray.add(attributes.get(attrs.get(i).getKey(), -1)); } tempArray.shrink(); return tempArray.items; }
private final int[] getAttributeLocations (final VertexAttributes attrs) { tempArray.clear(); final int n = attrs.size(); for (int i = 0; i < n; i++) { tempArray.add(attributes.get(attrs.get(i).getKey(), -1)); } tempArray.shrink(); return tempArray.items; }
float maxWidthLine = this.getWidth() - (style.background != null ? style.background.getLeftWidth() + style.background.getRightWidth() : 0); linesBreak.clear(); int lineStart = 0; int lastSpace = 0;
float maxWidthLine = this.getWidth() - (style.background != null ? style.background.getLeftWidth() + style.background.getRightWidth() : 0); linesBreak.clear(); int lineStart = 0; int lastSpace = 0;
counts.clear();
counts.clear();
vertexTypes.clear(); vertexTypes.ensureCapacity(vertexCount); for (int i = 0, n = vertexCount; i < n; ++i)
vertexTypes.clear(); vertexTypes.ensureCapacity(vertexCount); for (int i = 0, n = vertexCount; i < n; ++i)
indices.clear();
Gdx.gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle); unbindAttributes(shader); this.cachedLocations.clear();
Gdx.gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle); unbindAttributes(shader); this.cachedLocations.clear();
Gdx.gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle); unbindAttributes(shader); this.cachedLocations.clear();
Gdx.gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle); unbindAttributes(shader); this.cachedLocations.clear();