GlyphBitmap.java

com.mojang.blaze3d.font.GlyphBitmap

信息

  • 全限定名:com.mojang.blaze3d.font.GlyphBitmap
  • 类型:public interface
  • 包:com.mojang.blaze3d.font
  • 源码路径:src/main/java/com/mojang/blaze3d/font/GlyphBitmap.java
  • 起始行号:L8
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

方法

下面的方法块按源码顺序生成。

int getPixelWidth() @ L9

  • 方法名:getPixelWidth
  • 源码定位:L9
  • 返回类型:int
  • 修饰符:package-private

参数:

说明:

TODO

int getPixelHeight() @ L11

  • 方法名:getPixelHeight
  • 源码定位:L11
  • 返回类型:int
  • 修饰符:package-private

参数:

说明:

TODO

void upload(int x, int y, GpuTexture texture) @ L13

  • 方法名:upload
  • 源码定位:L13
  • 返回类型:void
  • 修饰符:package-private

参数:

  • x: int
  • y: int
  • texture: GpuTexture

说明:

TODO

boolean isColored() @ L15

  • 方法名:isColored
  • 源码定位:L15
  • 返回类型:boolean
  • 修饰符:package-private

参数:

说明:

TODO

float getOversample() @ L17

  • 方法名:getOversample
  • 源码定位:L17
  • 返回类型:float
  • 修饰符:package-private

参数:

说明:

TODO

default float getLeft() @ L19

  • 方法名:getLeft
  • 源码定位:L19
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

default float getRight() @ L23

  • 方法名:getRight
  • 源码定位:L23
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

default float getTop() @ L27

  • 方法名:getTop
  • 源码定位:L27
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

default float getBottom() @ L31

  • 方法名:getBottom
  • 源码定位:L31
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

default float getBearingLeft() @ L35

  • 方法名:getBearingLeft
  • 源码定位:L35
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

default float getBearingTop() @ L39

  • 方法名:getBearingTop
  • 源码定位:L39
  • 返回类型:float
  • 修饰符:default

参数:

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public interface GlyphBitmap {
    int getPixelWidth();
 
    int getPixelHeight();
 
    void upload(int x, int y, GpuTexture texture);
 
    boolean isColored();
 
    float getOversample();
 
    default float getLeft() {
        return this.getBearingLeft();
    }
 
    default float getRight() {
        return this.getLeft() + this.getPixelWidth() / this.getOversample();
    }
 
    default float getTop() {
        return 7.0F - this.getBearingTop();
    }
 
    default float getBottom() {
        return this.getTop() + this.getPixelHeight() / this.getOversample();
    }
 
    default float getBearingLeft() {
        return 0.0F;
    }
 
    default float getBearingTop() {
        return 7.0F;
    }
}

引用的其他类