mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 04:42:17 +00:00
24 lines
461 B
Java
24 lines
461 B
Java
package net.coderbot.iris.gl.texture;
|
|
|
|
import java.util.function.IntSupplier;
|
|
|
|
public class TextureWrapper implements TextureAccess {
|
|
private final IntSupplier texture;
|
|
private final TextureType type;
|
|
|
|
public TextureWrapper(IntSupplier texture, TextureType type) {
|
|
this.texture = texture;
|
|
this.type = type;
|
|
}
|
|
|
|
@Override
|
|
public TextureType getType() {
|
|
return this.type;
|
|
}
|
|
|
|
@Override
|
|
public IntSupplier getTextureId() {
|
|
return this.texture;
|
|
}
|
|
}
|