Class CubemapTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
foundry.veil.api.client.render.texture.CubemapTexture
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
DynamicCubemapTexture
public abstract class CubemapTexture
extends net.minecraft.client.renderer.texture.AbstractTexture
AbstractTexture
implementation for using a cubemap texture.-
Field Summary
Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
close, getId, load, releaseId, reset
-
Constructor Details
-
CubemapTexture
public CubemapTexture()
-
-
Method Details
-
getGlFace
public static int getGlFace(net.minecraft.core.Direction direction) Converts theDirection
value to the correct GL cubemap enum.- Parameters:
direction
- The direction to convert- Returns:
- The OpenGL enum
-
setFilter
public void setFilter(boolean blur, boolean mipmap) - Overrides:
setFilter
in classnet.minecraft.client.renderer.texture.AbstractTexture
-
bind
public void bind()- Overrides:
bind
in classnet.minecraft.client.renderer.texture.AbstractTexture
-