Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 3.04 KB

README.md

File metadata and controls

62 lines (44 loc) · 3.04 KB

unofficial-opengl-SDK

Build Status license Release Size Github All Releases Awesome Kotlin Badge

How to retrieve it:

You can find all the instructions by mary

uno

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:

  • methods for allocating very easily many different type of buffers from a lot of different data type, such as different arrays and so on
  • an cap class for a deep and complete resume about a machine opengl capabilities
  • matrixStack for glm
  • glsl utils (to refresh)
  • an experimental kotlin stlib on intBuffers. So that you can for example textureName.forEach(::glDestroyTexture)
  • mousePole, an util for camera management
  • and attempt to port stb completely on jvm (unfinished)
  • timer util

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 [email protected].

How to retrieve it:

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")
}

Credits: