This commit is contained in:
mewhenthe
2026-04-11 22:46:50 +02:00
parent e6dfc1adc5
commit f456b9b04e
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ object NeoComputers {
}
var bufferRenderer = BufferRenderer(20, 20, Identifier.fromNamespaceAndPath(MODID, "screen/test"), buffer)
bufferRenderer.drawBuffer()
bufferRenderer.dump()
// bufferRenderer.dump("/home/mewhenthe/code/NeoComputers/dump.png") // NOTE: CHANGE THIS BEFORE RUNNING!!!!
bufferRenderer.clean()
}

View File

@@ -25,8 +25,8 @@ class BufferRenderer(width: Int, height: Int, id: Identifier, buffer: MutableLis
private var image: NativeImage = NativeImage(texwidth, texheight, true); // idk what the boolean is
private var tex: DynamicTexture = DynamicTexture({id.path}, image)
fun dump() {
image.writeToFile(File("/home/mewhenthe/code/NeoComputers/dump.png"))
fun dump(path: String) {
image.writeToFile(File(path))
NeoComputers.LOGGER.info("DUMPED!!!")
}