is there a lwjgl like library thats kotlin-native ...
# kotlin-native
n
is there a lwjgl like library thats kotlin-native ?
k
Technically KN can use any C/ObjC library. I am interested as well as I would like to write games via KN, at least use KN to target iOS.
n
about that topic I started a while ago with something like that, is years light behind lwjgl (https://github.com/norman784/lwkgl)
the most isues I’ve was with opengl, was kinda hard to test some methods (also because the lack of knowledge with graphic libraries), I’m focused in other things right now but will continue with this when I’ve get more spare time.
also other biggest downside I’ve found is a proper GLM replacement (theres a kotlin math library, but its jvm dependant).
o
e
@norman784 did you refer to our glm kotlin port?
I might be interested into working for a native version
n
@elect Im referring to this one https://github.com/kotlin-graphics/glm, not sure if is yours.
@olonho yes, I already use it, thanks
e
yes, that one
@olonho according to Spasi who did take some metrics a while ago: "When you call a C function from Java, it's fast. On a modern desktop, the overhead is about 6-8 nanoseconds. When you call a Java method from C, it's slow. Easily 100-200 nanoseconds." How are we on KN? Roughly..
o
Shall be not difference compared to C calling cost, we have no managed runtime, maybe only argument automated conversion cost.
n
@elect this will be huge, in order to complete the OpenGL tutorial in K/N I need a GLM like library, and yours is the closest one to reach K/N, will watch your repo so I’ll get noticed when the support is done.
e
my biggest problem is the KN setup environment. Moreover is it doable a multiplatform project or do we have to have a version for platform?
328 Views