liorgonnen / kotlin-three-js-starter

A starter Kotlin/JS project with generated Kotlin externals for three.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin/JS + three.js Starter

This project will make it easy for you to quickly start writing 3D apps with Kotlin and three.js .

Although JetBrains introduced Dukat to convert JS/WebIDL/TS types to Kotlin external declarations, there's still a long way to go until it's fully functional.

I spent several days modifying Dukat in order to successfully generate the externals for three.js. (I'll link to this project separately). I didn't want to just modify the generated files by hand, so that I can easily upgrade to newer versions of three.js as they come in a scalable way.

Demo

The generated files are placed in their own module (threejs_kt) and referenced from the main gradle file, so that you can easily move this module from one project to another.

About

A starter Kotlin/JS project with generated Kotlin externals for three.js

License:MIT License


Languages

Language:Kotlin 99.9%Language:HTML 0.1%