I'm trying to render an OpenGL scene to a Canvas to be embedded in compose, but I can't figure out how to. I've seen the LWGJL compose desktop example but that's rendering compose content to a GLFW window, which is the opposite of what I want. Could I maybe get some guidance in what direction I need to go to do this?
r
romainguy
10/17/2024, 5:57 AM
The simplest way I can think of it to go through an AWTGLCanvas you embed in Compose using a SwingPanel
romainguy
10/17/2024, 5:57 AM
(Compose's Canvas won't let you render with GL into it directly)
f
Fudge
11/09/2024, 11:01 PM
@zt Could you tell me what example are you referring to? I'm looking for a way to render Compose to a GLFW window! The example I found renders lwjgl to awt which doesn't work well.