GlyphBitmap .java

com.mojang.blaze3d.font.GlyphBitmap (interface): members: getBearingLeft, getPixelHeight, getBearingTop, getOversample, getPixelWidth, isColored, getTop.

com.mojang.blaze3d.fontinterface43 linesclient808 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GlyphBitmap.java43 lines · Minecraft 26.3 · verbatim
1
package com.mojang.blaze3d.font;
2
3
import com.mojang.renderpearl.api.textures.GpuTexture;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
7
@Environment(EnvType.CLIENT)
8
public interface GlyphBitmap {
9
	int getPixelWidth();
10
11
	int getPixelHeight();
12
13
	void upload(int x, int y, GpuTexture texture);
14
15
	boolean isColored();
16
17
	float getOversample();
18
19
	default float getLeft() {
20
		return this.getBearingLeft();
21
	}
22
23
	default float getRight() {
24
		return this.getLeft() + this.getPixelWidth() / this.getOversample();
25
	}
26
27
	default float getTop() {
28
		return 7.0F - this.getBearingTop();
29
	}
30
31
	default float getBottom() {
32
		return this.getTop() + this.getPixelHeight() / this.getOversample();
33
	}
34
35
	default float getBearingLeft() {
36
		return 0.0F;
37
	}
38
39
	default float getBearingTop() {
40
		return 7.0F;
41
	}
42
}
43

Decompiled Minecraft 26.3 source of GlyphBitmap (com/mojang/blaze3d/font/GlyphBitmap.java) with Mojang official mappings, stored verbatim on the site.