mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 12:05:13 +01:00
Updated Map Rendering (markdown)
parent
530df89672
commit
86e104f3a1
@ -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)
|
Loading…
Reference in New Issue
Block a user