Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tsmock/lwjgl


https://github.com/tsmock/lwjgl

josm josm-plugin

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# README

A plugin which provides lwjgl libraries for plugins.
The plugin source code is under the GPL v2 or later.

It is "split" into platform-specific plugins:
* Each platform has its own "native" jar (if a
platform supports more than one architecture,
all architectures are in the jar file)

## Adding additional LWJGL libraries
Open a ticket on [JOSM Trac](https://josm.openstreetmap.de/newticket?cc=taylor.smock&keywords=lwjgl&component=Plugin)
with a request for the LWJGL library (note: to be eligible for this plugin, it
must be something recommended by LWJGL).

While not necessary, it would be nice to have a use case for the LWJGL that is
being added.

## Debugging
Depending upon what needs to be debugged, you can either start JOSM with the `--debug` flag _or_ you can start JOSM
with the VM argument `-javaagent:lwjglx-debug-1.0.0.jar` (see [lwjglx-debug](https://github.com/LWJGLX/debug)),
assuming you've customized the JOSM build process to include the `lwjgl` core module, like so:
```xml



```
Replace `${lwjgl.version}` with the version in ivy\_settings.xml. This is due to the javaagent requiring
`org.lwjgl.system.Configuration` to be available immediately, which it is not until JOSM loads the `lwjgl` plugin.

You will most likely encounter issues where the application fails due to
`No OpenGL context has been made current through recognized API methods (glfwMakeContextCurrent).`

See [LWJGLX debug #29](https://github.com/LWJGLX/debug/issues/29#issuecomment-985176717) for a workaround.
It pretty much comes down to manually setting the context.