@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } } }
@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } }
@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } } }
@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } }
@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } }
/** Stops the timer, tasks will not be executed and time that passes will not be applied to the task delays. */ public void stop () { synchronized (threadLock) { thread().instances.removeValue(this, true); } }
/** Stops the timer, tasks will not be executed and time that passes will not be applied to the task delays. */ public void stop () { synchronized (threadLock) { thread().instances.removeValue(this, true); } }
/** Disposes all resources associated with the cubemap */ @Override public void dispose () { // this is a hack. reason: we have to set the glHandle to 0 for textures that are // reloaded through the asset manager as we first remove (and thus dispose) the texture // and then reload it. the glHandle is set to 0 in invalidateAllTextures prior to // removal from the asset manager. if (glHandle == 0) return; delete(); if (data.isManaged()) if (managedCubemaps.get(Gdx.app) != null) managedCubemaps.get(Gdx.app).removeValue(this, true); }
/** Destroy a joint. This may cause the connected bodies to begin colliding. * @warning This function is locked during callbacks. */ public void destroyJoint (Joint joint) { joint.setUserData(null); joints.remove(joint.addr); joint.jointEdgeA.other.joints.removeValue(joint.jointEdgeB, true); joint.jointEdgeB.other.joints.removeValue(joint.jointEdgeA, true); jniDestroyJoint(addr, joint.addr); }
/** Frees all resources associated with this Mesh */ public void dispose () { if (meshes.get(Gdx.app) != null) meshes.get(Gdx.app).removeValue(this, true); vertices.dispose(); indices.dispose(); }
public void detach(int aEventType, Listener aListener) { Array<Listener> listeners = mListeners.get(aEventType); if(listeners != null) { listeners.removeValue(aListener, true); if(listeners.size == 0) mListeners.remove(aEventType); } }
public boolean removeValue (T value, boolean identity) { if (iterating > 0) { int index = indexOf(value, identity); if (index == -1) return false; remove(index); return true; } return super.removeValue(value, identity); }
public void stop () { if (audio.noDevice) return; if (sourceID == -1) return; audio.music.removeValue(this, true); reset(); audio.freeSource(sourceID); sourceID = -1; renderedSeconds = 0; renderedSecondsQueue.clear(); isPlaying = false; }
public Environment remove (SpotLight light) { if (has(SpotLightsAttribute.Type)) { SpotLightsAttribute spotLights = ((SpotLightsAttribute)get(SpotLightsAttribute.Type)); spotLights.lights.removeValue(light, false); if (spotLights.lights.size == 0) remove(SpotLightsAttribute.Type); } return this; } }
public void stop () { if (audio.noDevice) return; if (sourceID == -1) return; audio.music.removeValue(this, true); reset(); audio.freeSource(sourceID); sourceID = -1; renderedSeconds = 0; renderedSecondsQueue.clear(); isPlaying = false; }
public Environment remove (PointLight light) { if (has(PointLightsAttribute.Type)) { PointLightsAttribute pointLights = ((PointLightsAttribute)get(PointLightsAttribute.Type)); pointLights.lights.removeValue(light, false); if (pointLights.lights.size == 0) remove(PointLightsAttribute.Type); } return this; }
public Environment remove (SpotLight light) { if (has(SpotLightsAttribute.Type)) { SpotLightsAttribute spotLights = ((SpotLightsAttribute)get(SpotLightsAttribute.Type)); spotLights.lights.removeValue(light, false); if (spotLights.lights.size == 0) remove(SpotLightsAttribute.Type); } return this; } }
public boolean add (T key, int index) { if (!super.add(key)) { items.removeValue(key, true); items.insert(index, key); return false; } items.insert(index, key); return true; }
@Override public void dispose() { if (pixmapCopy == null) { throw new GdxRuntimeException("Cursor already disposed"); } cursors.removeValue(this, true); pixmapCopy.dispose(); pixmapCopy = null; glfwImage.free(); GLFW.glfwDestroyCursor(glfwCursor); }
/** Disposes all resources associated with this shader. Must be called when the shader is no longer used. */ public void dispose () { GL20 gl = Gdx.gl20; gl.glUseProgram(0); gl.glDeleteShader(vertexShaderHandle); gl.glDeleteShader(fragmentShaderHandle); gl.glDeleteProgram(program); if (shaders.get(Gdx.app) != null) shaders.get(Gdx.app).removeValue(this, true); }