Updated GLFWMapRendering (markdown)

Xavier Niochaut 2020-08-12 23:18:29 +02:00
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.