mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-20 14:21:29 +01:00
Updated GLFWMapRendering (markdown)
parent
ade77652da
commit
2b0a1cd4e2
@ -17,6 +17,8 @@ Start by creating a `GLFWFramebuffer` or a `LargeGLFWFramebuffer`.
|
||||
LargeGLFWFramebuffer framebuffer = new LargeGLFWFramebuffer(512, 512); // set up a 512x512 framebuffer
|
||||
```
|
||||
|
||||
You must be aware that this creates a new GLFW context and a new window. It is possible to change the used API via an overloaded constructor in both `GLFWFramebuffer` and `LargeGLFWFramebuffer`. It defaults to OpenGL, and creation via native API (OSMesa is an option via LWJGL).
|
||||
|
||||
## Instantaneous rendering
|
||||
*This type of rendering should be done if you plan on rarely updating the map.*
|
||||
Start by calling `GLFWCapableBuffer#changeRenderingThreadToCurrent()` to bind the rendering context to the current thread.
|
||||
|
Loading…
Reference in New Issue
Block a user