public class TextureRef
extends java.lang.Object
A reference counted wrapper for a Texture. TextureRefs are managed by the TextureDict.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
Name
Deprecated.
|
| Constructor and Description |
|---|
TextureRef(java.lang.String name,
Texture texture)
Deprecated.
Create a new TextureRef with the given name and texture.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TextureRef(java.lang.String name,
Texture texture)
name - The texture's name, typically its filesystem path.texture - The texture it reference counts.public void addRef()
public int unload()
public void dispose()
public void bind()
public Texture get()