|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.TextureRef
public class TextureRef
A reference counted wrapper for a Texture
. TextureRefs are managed by the TextureDict
.
Field Summary | |
---|---|
java.lang.String |
Name
Deprecated. |
Constructor Summary | |
---|---|
TextureRef(java.lang.String name,
Texture texture)
Deprecated. Create a new TextureRef with the given name and texture. |
Method Summary | |
---|---|
void |
addRef()
Deprecated. Adds a reference to the texture. |
void |
bind()
Deprecated. Binds the texture in OpenGL. |
void |
dispose()
Deprecated. |
Texture |
get()
Deprecated. Gets the wrapped texture. |
int |
unload()
Deprecated. Removes a reference to the texture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String Name
Constructor Detail |
---|
public TextureRef(java.lang.String name, Texture texture)
name
- The texture's name, typically its filesystem path.texture
- The texture it reference counts.Method Detail |
---|
public void addRef()
public int unload()
public void dispose()
public void bind()
public Texture get()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |