Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.elect86:unofficial-opengl-SDK:0.7.20'
}
dependencies {
implementation("com.github.elect86:unofficial-opengl-SDK:0.7.20")
}
<dependency>
<groupId>com.github.elect86</groupId>
<artifactId>unofficial-opengl-SDK</artifactId>
<version>0.7.20</version>
</dependency>
libraryDependencies += "com.github.elect86" % "unofficial-opengl-SDK" % "0.7.20"
:dependencies [[com.github.elect86/unofficial-opengl-SDK "0.7.20"]]
You can find all the instructions by mary
This is kind of a small suite, born and shaped around GL, it includes the gln dependencies, such as unsigned support, glm and gli. Its main usage is basically as wrapper for the lwjgl glfw binding.
A kind of a gln for glfw. So, code more compact, type-safe, clear and intuitive. You can have up and running a whole gl clear example in just a couple of lines:
glfw.init("3.3")
val glfwWindow = GlfwWindow(1280, 720, "OpenGL example")
val window = GlWindow(glfwWindow)
glClearColor(1f, 0f, 0f, 0f)
window.loop {
glClear(GL_COLOR_BUFFER_BIT)
}
Plus some other small utils like:
textureName.forEach(::glDestroyTexture)
And lately it also includes a counterpart of gln for vulkan, vkk, plus an util for making short-live allocations easy and free, kool.
Don't hesitate to contribute to the project by submitting issues or pull requests for bugs and features. Any feedback is welcome at elect86@gmail.com.
repositories {
maven("https://raw.githubusercontent.com/kotlin-graphics/mary/master")
// or with magik plugin
//github("kotlin-graphics/mary")
}
dependencies {
implementation("kotlin.graphics:uno:0.7.21")
}