public void setStyle(int style) { if (characters.size() > 1) { throw new RuntimeException("Applicable only for single style font"); } Entry<IntMap<BitmapCharacter>> entry = characters.iterator().next(); IntMap<BitmapCharacter> charset = entry.getValue(); characters.remove(entry.getKey()); characters.put(style, charset); }
/** * Unsets the {@link VertexBuffer} set on this mesh * with the given type. Does nothing if the vertex buffer type is not set * initially. * * @param type The buffer type to remove */ public void clearBuffer(VertexBuffer.Type type){ VertexBuffer vb = buffers.remove(type.ordinal()); if (vb != null){ buffersList.remove(vb); updateCounts(); } }
pendingInvocations.remove(call.invocationId); return invoke.retVal; }else{
private void invokeTimedActions(int hash, long time, boolean pressed) { if (!bindings.containsKey(hash)) { return; } if (pressed) { pressedButtons.put(hash, time); } else { Long pressTimeObj = pressedButtons.remove(hash); if (pressTimeObj == null) { return; // under certain circumstances it can be null, ignore } // the event then. long pressTime = pressTimeObj; long lastUpdate = lastLastUpdateTime; long releaseTime = time; long timeDelta = releaseTime - Math.max(pressTime, lastUpdate); if (timeDelta > 0) { invokeAnalogs(hash, computeAnalogValue(timeDelta), false); } } }
mesh.getBuffers().remove(bufferType.ordinal());
public void setStyle(int style) { if (characters.size() > 1) { throw new RuntimeException("Applicable only for single style font"); } Entry<IntMap<BitmapCharacter>> entry = characters.iterator().next(); IntMap<BitmapCharacter> charset = entry.getValue(); characters.remove(entry.getKey()); characters.put(style, charset); }
public void setStyle(int style) { if (characters.size() > 1) { throw new RuntimeException("Applicable only for single style font"); } Entry<IntMap<BitmapCharacter>> entry = characters.iterator().next(); IntMap<BitmapCharacter> charset = entry.getValue(); characters.remove(entry.getKey()); characters.put(style, charset); }
/** * Unsets the {@link VertexBuffer} set on this mesh * with the given type. Does nothing if the vertex buffer type is not set * initially. * * @param type The buffer type to remove */ public void clearBuffer(VertexBuffer.Type type){ VertexBuffer vb = buffers.remove(type.ordinal()); if (vb != null){ buffersList.remove(vb); updateCounts(); } }
/** * Unsets the {@link VertexBuffer} set on this mesh * with the given type. Does nothing if the vertex buffer type is not set * initially. * * @param type The buffer type to remove */ public void clearBuffer(VertexBuffer.Type type){ VertexBuffer vb = buffers.remove(type.ordinal()); if (vb != null){ buffersList.remove(vb); updateCounts(); } }
pendingInvocations.remove(call.invocationId); return invoke.retVal; }else{
pendingInvocations.remove(call.invocationId); return invoke.retVal; }else{
private void invokeTimedActions(int hash, long time, boolean pressed) { if (!bindings.containsKey(hash)) { return; } if (pressed) { pressedButtons.put(hash, time); } else { Long pressTimeObj = pressedButtons.remove(hash); if (pressTimeObj == null) { return; // under certain circumstances it can be null, ignore } // the event then. long pressTime = pressTimeObj; long lastUpdate = lastLastUpdateTime; long releaseTime = time; long timeDelta = releaseTime - Math.max(pressTime, lastUpdate); if (timeDelta > 0) { invokeAnalogs(hash, computeAnalogValue(timeDelta), false); } } }
private void invokeTimedActions(int hash, long time, boolean pressed) { if (!bindings.containsKey(hash)) { return; } if (pressed) { pressedButtons.put(hash, time); } else { Long pressTimeObj = pressedButtons.remove(hash); if (pressTimeObj == null) { return; // under certain circumstances it can be null, ignore } // the event then. long pressTime = pressTimeObj; long lastUpdate = lastLastUpdateTime; long releaseTime = time; long timeDelta = releaseTime - Math.max(pressTime, lastUpdate); if (timeDelta > 0) { invokeAnalogs(hash, computeAnalogValue(timeDelta), false); } } }
axisValues.remove(hash1); axisValues.remove(hash2); invokeAnalogsAndActions(hash, -value, true); axisValues.put(hash, -value); axisValues.remove(otherHash); } else { int hash = JoyAxisTrigger.joyAxisHash(joyId, axis, false); invokeAnalogsAndActions(hash, value, true); axisValues.put(hash, value); axisValues.remove(otherHash);