Skip to content

Lightweight OpenGL abstraction for Kotlin Multiplatform

License

Notifications You must be signed in to change notification settings

gergelydaniel/kgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d27df4 · Nov 4, 2024
Nov 4, 2024
Dec 29, 2023
Dec 17, 2022
Dec 2, 2023
Dec 29, 2023
Nov 4, 2024
Dec 29, 2023
Dec 29, 2023
Nov 4, 2024
Sep 9, 2023
Dec 17, 2022
Aug 28, 2019
Sep 9, 2023
Dec 10, 2021
Nov 6, 2021
Nov 6, 2021
Aug 25, 2023
Apr 23, 2022

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.