本文整理了Java中com.badlogic.gdx.utils.Array.removeValue()
方法的一些代码示例,展示了Array.removeValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Array.removeValue()
方法的具体详情如下:
包路径:com.badlogic.gdx.utils.Array
类名称:Array
方法名:removeValue
[英]Removes the first instance of the specified value in the array.
[中]删除数组中指定值的第一个实例。
代码示例来源:origin: libgdx/libgdx
@Override
public void removeLifecycleListener (LifecycleListener listener) {
synchronized (lifecycleListeners) {
lifecycleListeners.removeValue(listener, true);
}
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void removeLifecycleListener (LifecycleListener listener) {
synchronized (lifecycleListeners) {
lifecycleListeners.removeValue(listener, true);
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void removeLifecycleListener (LifecycleListener listener) {
synchronized (lifecycleListeners) {
lifecycleListeners.removeValue(listener, true);
}
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void removeLifecycleListener (LifecycleListener listener) {
synchronized (lifecycleListeners) {
lifecycleListeners.removeValue(listener, true);
}
}
代码示例来源:origin: libgdx/libgdx
@Override
public void removeLifecycleListener (LifecycleListener listener) {
synchronized (lifecycleListeners) {
lifecycleListeners.removeValue(listener, true);
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
代码示例来源:origin: libgdx/libgdx
/** 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();
}
代码示例来源:origin: libgdx/libgdx
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);
}
}
代码示例来源:origin: libgdx/libgdx
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);
}
代码示例来源:origin: libgdx/libgdx
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;
}
代码示例来源:origin: libgdx/libgdx
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;
}
}
代码示例来源:origin: libgdx/libgdx
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;
}
代码示例来源:origin: libgdx/libgdx
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;
}
代码示例来源:origin: libgdx/libgdx
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;
}
}
代码示例来源:origin: libgdx/libgdx
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;
}
代码示例来源:origin: libgdx/libgdx
@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);
}
代码示例来源:origin: libgdx/libgdx
/** 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);
}
内容来源于网络,如有侵权,请联系作者删除!