how can we implement our own ComposeLayer, it is i...
# compose-desktop
s
how can we implement our own ComposeLayer, it is internal
k
Perhaps rewind back to the problem you're trying to solve, and not the specific solution
s
with older version ComposeLayer is public, but right now it is marked with internal
i
For what do you need a custom ComposeLayer? You can use ComposePanel to create a Compose content inside a swing component
s
I think is for it own compose render context like LWJGL
i
own compose render context like LWJGL
If it is the case, then currently the only way is to fork androidx sources
But third-party ComposeLayer's look like an interesting case, so at some point in the future we will be ready to provide an API for that.
s
I am trying to implement compose in Minecraft and other LWJGL application, @semoro has an implementation in older version when ComposeLayer is not marked as internal
Also Minecraft 1.17 released in 6.8 and it runs on java 16, it would be good to have such a great ui library in lwjgl application for the Minecraft Modding community and more, like other lwjgl games.