Hey does native have a graphics lib included? Or w...
# kotlin-native
h
Hey does native have a graphics lib included? Or would we have to implement one I know there is Android but i don't think that it's possible to use cross platform
🚫 2
o
Which platform? OpenGL is bundled by default on many platforms
h
Ok now is there a wrapper lib of OpenGL avail or will I have to build one sorry there is not list of all lib included like in go lang
o
for Windows, macOS, iOS and Android it’s included in the distro, for other platform you can create one easily. See this teapot example: https://github.com/JetBrains/kotlin-native/blob/master/samples/opengl/src/openglMain/kotlin/OpenGlTeapot.kt
n
Some Linux distros have OpenGL lib bundled. Other Linux distros require the OpenGL lib to be installed ( https://www.linuxjournal.com/content/introduction-opengl-programming )
A much easier route to go with when targeting Linux is to use SDL (originated on Linux before being ported to other platforms), which uses OpenGL under the covers: https://gldraphael.com/blog/getting-started-with-sdl/ Some AAA games use SDL (many Valve titles, Neverwinter Nights 1, Quake 4, Doom 3 etc).
h
Thanks for the suggestion
I was wondering because I am working on a kotlin and volant project to see about intermediary Interop (cuz of C)
And I know volant doesnt have a regular graphics lib
Golang*
1
n