/** * Empties the map. */ public void clear() { this._map.clear(); }
public void clear() { synchronized( mutex ) { m.clear(); } }
@Override public final void doReload(MaterialData data) { try { GameThread.synch(() -> { disposalAction.run(); uniformLocationMap.clear(); shader = (GLSLShader) data.getShader(); recompile(); rebindVariables(data); }); } catch (InterruptedException e) { logger.error("Failed to reload {}", getUrn(), e); } }
@Override public void recompile() { TIntIntIterator it = disposalAction.shaderPrograms.iterator(); while (it.hasNext()) { it.advance(); GL20.glDeleteProgram(it.value()); } disposalAction.shaderPrograms.clear(); uniformLocationMap.clear(); bindMap.clear(); disposalAction.shaderPrograms.put(0, shader.linkShaderProgram(0)); for (Set<ShaderProgramFeature> permutation : Sets.powerSet(shader.getAvailableFeatures())) { int featureMask = ShaderProgramFeature.getBitset(permutation); disposalAction.shaderPrograms.put(featureMask, shader.linkShaderProgram(featureMask)); } //resolves #966 //Some of the uniforms are not updated constantly between frames //this function will rebind any uniforms that are not bound rebindVariables(materialData); }
/** * Empties the map. */ public void clear() { this._map.clear(); }
/** * Resets the counts for all objects. The size of {@link #items()} will be * 0 after this call. */ public void reset() { counts.clear(); sum = 0; }
/** * Empties the map. */ @Override public void clear() { this._map.clear(); }
/** * Resets the counts for all objects. The size of {@link #items()} will be * 0 after this call. */ public void reset() { counts.clear(); sum = 0; }
public void clear() { synchronized( mutex ) { m.clear(); } }
/** * Empties the map. */ public void clear() { this._map.clear(); }
/** * Empties the map. */ public void clear() { this._map.clear(); }
@Override public void clear() { synchronized( mutex ) { m.clear(); } }
public void clear() { synchronized( mutex ) { m.clear(); } }
public void clear() { stringForCode.clear(); codeForString.clear(); stringForCode.add(""); // zero is a special value, indicating the end of a list of KV pairs for a single node. }
@Override public void clear() { super.clear(); index.clear(); }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
/** * {@inheritDoc} */ public void clear() { vertexToEdges.clear(); typeCounts.clear(); size = 0; }
/** * Clears all the vertex data. */ public void clear() { indices.clear(); attributes.clear(); nameToIndex.clear(); }
@Mod.EventHandler public void onIMC(FMLInterModComms.IMCEvent event) { for (FMLInterModComms.IMCMessage msg : event.getMessages()) { IMCHandler.INSTANCE.handleMessage(msg); } IMCHandler.INSTANCE.imcCounts.forEachEntry((s, c) -> { Chisel.logger.info("Received {} IMC messages from mod {}.", c, s); return true; }); IMCHandler.INSTANCE.imcCounts.clear(); }