@Environment(value=CLIENT) public class NativeImageBackedTexture extends AbstractTexture
Modifier and Type | Field and Description |
---|---|
private static Logger |
field_25794 |
private NativeImage |
image |
bilinear, glId, mipmap
Constructor and Description |
---|
NativeImageBackedTexture(int width,
int height,
boolean useStb) |
NativeImageBackedTexture(NativeImage image) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
NativeImage |
getImage() |
void |
load(ResourceManager manager) |
void |
setImage(NativeImage image) |
void |
upload() |
bindTexture, clearGlId, getGlId, registerTexture, setFilter
private static final Logger field_25794
@Nullable private NativeImage image
public NativeImageBackedTexture(NativeImage image)
public NativeImageBackedTexture(int width, int height, boolean useStb)
public void load(ResourceManager manager)
load
in class AbstractTexture
public void upload()
@Nullable public NativeImage getImage()
public void setImage(NativeImage image)
public void close()
close
in interface AutoCloseable
close
in class AbstractTexture