aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-07-04 04:22:13 +0200
committernea <nea@nea.moe>2023-07-04 04:22:13 +0200
commit4444fcca44d9a53c8162d69e0e9f19fd214c2f54 (patch)
tree3061008b93a4f994923c6523c99c754abfe3e4d1 /src/main/kotlin/moe/nea/firmament/events
parentd4410a67fb43cf467194b67552cdf4b85c6753bd (diff)
downloadFirmament-4444fcca44d9a53c8162d69e0e9f19fd214c2f54.tar.gz
Firmament-4444fcca44d9a53c8162d69e0e9f19fd214c2f54.tar.bz2
Firmament-4444fcca44d9a53c8162d69e0e9f19fd214c2f54.zip
Add text rendering debugging
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt b/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt
index 4778b91..c5da84f 100644
--- a/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt
+++ b/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt
@@ -22,7 +22,10 @@ import org.joml.Matrix4f
import net.minecraft.client.render.Camera
import net.minecraft.client.render.GameRenderer
import net.minecraft.client.render.LightmapTextureManager
+import net.minecraft.client.render.VertexConsumerProvider
import net.minecraft.client.util.math.MatrixStack
+import net.minecraft.util.math.Position
+import net.minecraft.util.math.Vec3d
/**
* This event is called after all world rendering is done, but before any GUI rendering (including hand) has been done.
@@ -35,6 +38,11 @@ data class WorldRenderLastEvent(
val gameRenderer: GameRenderer,
val lightmapTextureManager: LightmapTextureManager,
val positionMatrix: Matrix4f,
+ val vertexConsumers: VertexConsumerProvider.Immediate,
) : FirmamentEvent() {
companion object : FirmamentEventBus<WorldRenderLastEvent>()
+ data class TextRenderCall(val string: String, val position: Position)
+
+ val toRender = mutableListOf<TextRenderCall>(TextRenderCall("Test String", Vec3d(0.0, 0.0, 0.0)))
+
}