Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
548 stars 44 forks source link

Importing gl-matrix version 3.3.0 with externals produces hard-to-use code #436

Open elizarov opened 3 years ago

elizarov commented 3 years ago
implementation(npm("gl-matrix", "3.3.0", generateExternals = true))

All gl-matrix objects (vec3, mat3, mat4, etc) are compiled into Kotlin package, but since they all have a similarly named set of static functions, they are not easily useable from Kotlin. The idiomatic way to import this library into Kotlin would be to generate an external object vec3, etc (or external class vec3).