From 86e104f3a153381af42e28bf5285b91c06c665ad Mon Sep 17 00:00:00 2001 From: Xavier Niochaut Date: Wed, 12 Aug 2020 21:50:45 +0200 Subject: [PATCH] Updated Map Rendering (markdown) --- Map-Rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Map-Rendering.md b/Map-Rendering.md index 500b6e3..829739e 100644 --- a/Map-Rendering.md +++ b/Map-Rendering.md @@ -67,6 +67,7 @@ fb.set(0,0, MapColors.DIRT.baseColor()); ``` ## `Graphics2DFramebuffer` / `LargeGraphics2DFramebuffer` +*These framebuffers require a conversion from RGB to MapColors. This is done automatically by Minestom but can seriously impact rendering performance when the resolution increases.* As the name suggests, these framebuffers allow usage of the Graphics2D API from the AWT library included in the Java standard library. Access the `Graphics2D` object through `getRenderer()` and render your content on it. @@ -81,6 +82,5 @@ renderer.drawString("Graphics2D!", 0, 20); ``` Graphics2D framebuffers also support getting/setting pixels individually if necessary. - ## GLFW-Capable buffers [This is an article all to itself.](https://github.com/Minestom/Minestom/wiki/GLFWMapRendering) \ No newline at end of file