Package com.mojang.blaze3d.textures
Class GpuTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GlTexture
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddressModeprotected AddressModeprivate final TextureFormatprivate final intprivate final Stringprotected FilterModeprotected FilterModeprivate final intprotected booleanprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionGpuTexture(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()intgetHeight(int pMipLevel) getLabel()intintgetWidth(int pMipLevel) abstract booleanisClosed()voidsetAddressMode(AddressMode pAddressMode) voidsetAddressMode(AddressMode pAddressModeU, AddressMode pAddressModeV) voidsetTextureFilter(FilterMode pFilter, boolean pUseMipmaps) voidsetTextureFilter(FilterMode pMinFilter, FilterMode pMagFilter, boolean pUseMipmaps)
-
Field Details
-
format
-
width
private final int width -
height
private final int height -
mipLevels
private final int mipLevels -
label
-
addressModeU
-
addressModeV
-
minFilter
-
magFilter
-
useMipmaps
protected boolean useMipmaps
-
-
Constructor Details
-
GpuTexture
-
-
Method Details
-
getWidth
public int getWidth(int pMipLevel) -
getHeight
public int getHeight(int pMipLevel) -
getMipLevels
public int getMipLevels() -
getFormat
-
setAddressMode
-
setAddressMode
-
setTextureFilter
-
setTextureFilter
-
getLabel
-
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-
isClosed
public abstract boolean isClosed()
-