libgdx API

com.badlogic.gdx.graphics
Class TextureDict

java.lang.Object
  extended by com.badlogic.gdx.graphics.TextureDict

Deprecated.

public class TextureDict
extends java.lang.Object

A texture dictionary is used to track the usage of your textures and supply a single point of access for texture resources. It stores TextureRefs by their path. If you need to load the same texture in different parts of your application it will only be loaded into memory once by the dictionary.

Author:
Dave Clayton

Constructor Summary
TextureDict()
          Deprecated.  
 
Method Summary
static TextureRef loadTexture(java.lang.String path)
          Deprecated. Loads a new texture into the dictionary as a reference counted TextureRef.
static TextureRef loadTexture(java.lang.String path, Texture.TextureFilter minFilter, Texture.TextureFilter magFilter, Texture.TextureWrap uwrap, Texture.TextureWrap vwrap)
          Deprecated. Loads a new texture into the dictionary as a reference counted TextureRef.
static void removeTexture(java.lang.String path)
          Deprecated. Removes a texture from the dictionary.
static void unloadAll()
          Deprecated. Unloads all of the currently managed textures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureDict

public TextureDict()
Deprecated. 
Method Detail

loadTexture

public static TextureRef loadTexture(java.lang.String path)
Deprecated. 
Loads a new texture into the dictionary as a reference counted TextureRef.

Parameters:
path - the path to the texture image.
Returns:
the representing the texture.

loadTexture

public static TextureRef loadTexture(java.lang.String path,
                                     Texture.TextureFilter minFilter,
                                     Texture.TextureFilter magFilter,
                                     Texture.TextureWrap uwrap,
                                     Texture.TextureWrap vwrap)
Deprecated. 
Loads a new texture into the dictionary as a reference counted TextureRef.

Parameters:
path - the path to the texture image.
minFilter - minFilter Texture.TextureFilter.
magFilter - magFilter Texture.TextureFilter.
uwrap - u-wrapping.
vwrap - v-wrapping.
Returns:
the representing the texture.

removeTexture

public static void removeTexture(java.lang.String path)
Deprecated. 
Removes a texture from the dictionary. In general you should probably not use this - use TextureRef.unload() instead.

Parameters:
path - to the texture.

unloadAll

public static void unloadAll()
Deprecated. 
Unloads all of the currently managed textures.


libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)