Hello! I've been looking into Compose recently; I'...
# compose-desktop
h
Hello! I've been looking into Compose recently; I've never used it before (and I'm relatively new to Kotlin in general), but I am wondering the scope to which it is intended to be used. I was going to use LWJGL for a project (and by extension, OpenGL); can Compose be used to create UIs for this? Or do you have to make your UI either entirely with Compose or not at all? If the latter, should I be using it, or is Compose meant more for UI-only applications? Thanks in advance.
j
Compose is primarily designed for building UI applications. That said, I did take an old video game I wrote back in high school and ported it over to 100% Compose, and other people have embedded Compose in an OpenGL video game environment: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1614078341057400?thread_ts=1614046787.051800&cid=C01D6HTPATV So yes, all these things are very possible. I'd recommend starting small and get some experience building apps with Compose. You will then be better positioned to evaluate the technology against your own requirements. Otherwise, the best you'll get is some random person's guess about what might or might not work for a use case that they haven't taken the time to fully assess.
h
Thanks! This helps; I'll look into it.