本文整理汇总了Java中com.badlogic.gdx.utils.Disposable.dispose方法的典型用法代码示例。如果您正苦于以下问题:Java Disposable.dispose方法的具体用法?Java Disposable.dispose怎么用?Java Disposable.dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.utils.Disposable
的用法示例。
在下文中一共展示了Disposable.dispose方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose () {
world.dispose();
world = null;
for (Disposable disposable : disposables)
disposable.dispose();
disposables.clear();
modelBatch.dispose();
modelBatch = null;
shadowBatch.dispose();
shadowBatch = null;
if (shadows)
((DirectionalShadowLight)light).dispose();
light = null;
super.dispose();
}
示例2: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose () {
world.dispose();
world = null;
for (Disposable disposable : disposables)
disposable.dispose();
disposables.clear();
modelBatch.dispose();
modelBatch = null;
shadowBatch.dispose();
shadowBatch = null;
if (shadows) ((DirectionalShadowLight)light).dispose();
light = null;
}
示例3: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose () {
System.out.println("Dispose");
if (disposables != null)
for (Disposable d : disposables)
d.dispose();
}
示例4: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose() {
for (final Disposable disposable : values()) {
if (disposable != null) {
disposable.dispose();
}
}
}
示例5: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose() {
for (final Disposable disposable : this) {
if (disposable != null) {
disposable.dispose();
}
}
}
示例6: gracefullyDisposeOf
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
/** Performs null check and disposes of an asset. Ignores exceptions.
*
* @param disposable will be disposed of (if it exists). */
public static void gracefullyDisposeOf(final Disposable disposable) {
try {
if (disposable != null) {
disposable.dispose();
}
} catch (final Throwable exception) {
Gdx.app.error("WARN", "Unable to dispose: " + disposable + ". Ignored.", exception);
}
}
示例7: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose () {
if (ownedResources != null) {
for (Disposable resource : ownedResources) {
resource.dispose();
}
}
}
示例8: disposeLooseResource
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
private void disposeLooseResource(Disposable disposable) {
disposable.dispose();
}
示例9: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
public void dispose (){
for (Disposable disposable : disposables) disposable.dispose();
}
示例10: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose() {
for (Disposable disposable : disposables) disposable.dispose();
}
示例11: disposeOf
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
/** Performs null check and disposes of an asset.
*
* @param disposable will be disposed of (if it exists). */
public static void disposeOf(final Disposable disposable) {
if (disposable != null) {
disposable.dispose();
}
}
示例12: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose () {
for (Disposable disposable : disposables) {
disposable.dispose();
}
}
示例13: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
@Override
public void dispose() {
for (Disposable d : disposables)
d.dispose();
}
示例14: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
public static void dispose(Disposable disp, String name) {
Log.debug("dispose: " + name + " -- " + disp);
disp.dispose();
}
示例15: dispose
import com.badlogic.gdx.utils.Disposable; //导入方法依赖的package包/类
public static void dispose(Disposable disposable) {
if (disposable != null) {
disposable.dispose();
}
}