GpuTextureView.java
com.mojang.blaze3d.textures.GpuTextureView
信息
- 全限定名:com.mojang.blaze3d.textures.GpuTextureView
- 类型:public abstract class
- 包:com.mojang.blaze3d.textures
- 源码路径:src/main/java/com/mojang/blaze3d/textures/GpuTextureView.java
- 起始行号:L7
- 实现:AutoCloseable
- 职责:
TODO
字段/常量
-
texture- 类型:
GpuTexture - 修饰符:
private final - 源码定位:
L8 - 说明:
TODO
- 类型:
-
baseMipLevel- 类型:
int - 修饰符:
private final - 源码定位:
L9 - 说明:
TODO
- 类型:
-
mipLevels- 类型:
int - 修饰符:
private final - 源码定位:
L10 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
protected GpuTextureView(GpuTexture texture, int baseMipLevel, int mipLevels) @ L12
- 构造器名:GpuTextureView
- 源码定位:L12
- 修饰符:protected
参数:
- texture: GpuTexture
- baseMipLevel: int
- mipLevels: int
说明:
TODO
方法
下面的方法块按源码顺序生成。
public abstract void close() @ L18
- 方法名:close
- 源码定位:L18
- 返回类型:void
- 修饰符:public abstract
参数:
- 无
说明:
TODO
public GpuTexture texture() @ L21
- 方法名:texture
- 源码定位:L21
- 返回类型:GpuTexture
- 修饰符:public
参数:
- 无
说明:
TODO
public int baseMipLevel() @ L25
- 方法名:baseMipLevel
- 源码定位:L25
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int mipLevels() @ L29
- 方法名:mipLevels
- 源码定位:L29
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int getWidth(int mipLevel) @ L33
- 方法名:getWidth
- 源码定位:L33
- 返回类型:int
- 修饰符:public
参数:
- mipLevel: int
说明:
TODO
public int getHeight(int mipLevel) @ L37
- 方法名:getHeight
- 源码定位:L37
- 返回类型:int
- 修饰符:public
参数:
- mipLevel: int
说明:
TODO
public abstract boolean isClosed() @ L41
- 方法名:isClosed
- 源码定位:L41
- 返回类型:boolean
- 修饰符:public abstract
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public abstract class GpuTextureView implements AutoCloseable {
private final GpuTexture texture;
private final int baseMipLevel;
private final int mipLevels;
protected GpuTextureView(GpuTexture texture, int baseMipLevel, int mipLevels) {
this.texture = texture;
this.baseMipLevel = baseMipLevel;
this.mipLevels = mipLevels;
}
@Override
public abstract void close();
public GpuTexture texture() {
return this.texture;
}
public int baseMipLevel() {
return this.baseMipLevel;
}
public int mipLevels() {
return this.mipLevels;
}
public int getWidth(int mipLevel) {
return this.texture.getWidth(mipLevel + this.baseMipLevel);
}
public int getHeight(int mipLevel) {
return this.texture.getHeight(mipLevel + this.baseMipLevel);
}
public abstract boolean isClosed();
}引用的其他类
- GpuTexture
- 引用位置:
参数/字段/返回值
- 引用位置: