This is a thin OpenGL wrapper library for Kotlin Multiplatform.
Note: this library is a work-in-progress, the set of functions is incomplete. I used it for my multiplatform game Skyway. Despite it not being ready I can still recommend using it, since it's designed to be as thin a layer as possible, it might be a good start for other projects as well, it's easy to extend and troubleshoot if necessary.
Platform | Artifact |
---|---|
Common | kgl |
Android | kgl-android |
iOS | kgl-ios |
WebGL | kgl |
LWJGL (Java desktop) | kgl-lwjgl |
JOGL (Java desktop) | kgl-jogl |
maven { url 'https://maven.danielgergely.com/releases' }
implementation 'com.danielgergely.kgl:$artifactName:$kglVersion'
Use gradlew build
command to build project.
Use gradlew publish
command to publish to the Maven repository - note: environment variables must be set accordingly.