Lwjgl3: Kotlin Library

Created on 22 Feb 2018  路  3Comments  路  Source: LWJGL/lwjgl3

LWJGL3 is clearly a Kotlin library - with a Java API. This should be reflected on the site and the description.

Question

Most helpful comment

Unless things have changed, LWJGL is still 100% Java at compile time, and only uses Kotlin for generation of sources. It's not really a Kotlin library.

All 3 comments

Unless things have changed, LWJGL is still 100% Java at compile time, and only uses Kotlin for generation of sources. It's not really a Kotlin library.

Can you also generate Kotlin sources?

Can you also generate Kotlin sources?

Not at the moment, but you can use LWJGL in Kotlin, just like any other Java library. Also, nullability annotations have been added recently which improves Kotlin interop.

Generating Kotlin sources could be beneficial for certain things. E.g. making struct access syntax look like C, with Kotlin properties. However, Kotlin/Native is maturing quickly and I'm waiting to see what options open there, before committing to anything.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benalexau picture benalexau  路  4Comments

baileysostek picture baileysostek  路  4Comments

hoijui picture hoijui  路  7Comments

Marcono1234 picture Marcono1234  路  3Comments

thislooksfun picture thislooksfun  路  5Comments