Java Code Examples for com.badlogic.gdx.utils.Disposable#dispose()
The following examples show how to use
com.badlogic.gdx.utils.Disposable#dispose() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BulletSteeringTest.java From gdx-ai with Apache License 2.0 | 6 votes |
@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; }
Example 2
Source File: Tools.java From gdx-proto with Apache License 2.0 | 4 votes |
public static void dispose(Disposable disp, String name) { Log.debug("dispose: " + name + " -- " + disp); disp.dispose(); }
Example 3
Source File: HeadlessModel.java From gdx-proto with Apache License 2.0 | 4 votes |
@Override public void dispose () { for (Disposable disposable : disposables) { disposable.dispose(); } }