Skip to content

Lightweight OpenGL abstraction for Kotlin Multiplatform

License

Notifications You must be signed in to change notification settings

gergelydaniel/kgl

Repository files navigation

Kgl - Kotlin Multiplatform OpenGL abstraction

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.

Implemented platforms

Platform Artifact
Common kgl
Android kgl-android
iOS kgl-ios
WebGL kgl
LWJGL (Java desktop) kgl-lwjgl
JOGL (Java desktop) kgl-jogl

Install

maven { url 'https://maven.danielgergely.com/releases' }

implementation 'com.danielgergely.kgl:$artifactName:$kglVersion'

Build

Use gradlew build command to build project.

Use gradlew publish command to publish to the Maven repository - note: environment variables must be set accordingly.