Class Texture
TODO: ADD Cache to this class.
Inheritance
java.lang.Object
Texture
Syntax
public class Texture implements Expendable
Constructors
Texture(String fileName)
Declaration
public Texture(String fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Fields
TEXTURES_DIR
Declaration
public static final String TEXTURES_DIR= "./res/textures/"
Field Value
Type |
Description |
final String |
|
Methods
addReference()
Declaration
public void addReference()
bind()
Declaration
bind(int samplerSlot)
Declaration
public void bind(int samplerSlot)
Parameters
Type |
Name |
Description |
int |
samplerSlot |
|
dispose()
Declaration
Overrides
getFileName()
Declaration
public String getFileName()
Returns
getId()
Declaration
Returns
getRefCount()
Declaration
Returns
load()
Declaration
Returns
removeRefrence()
Declaration
public boolean removeRefrence()
Returns
setFileName(String fileName)
Declaration
public void setFileName(String fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
setId(int id)
Declaration
public void setId(int id)
Parameters
Type |
Name |
Description |
int |
id |
|
setRefCount(int refCount)
Declaration
public void setRefCount(int refCount)
Parameters
Type |
Name |
Description |
int |
refCount |
|