|
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
|
Constructor Summary | |
---|---|
TextureRef(java.lang.String name,
Texture texture)
Create a new TextureRef with the given name and texture. |
Method Summary | |
---|---|
void |
addRef()
Adds a reference to the texture. |
void |
bind()
Binds the texture in OpenGL. |
void |
dispose()
|
Texture |
get()
Gets the wrapped texture. |
int |
unload()
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 |