So I'm writing an OpenGL Loader generator for Kotl...
# kotlin-native
d
So I'm writing an OpenGL Loader generator for Kotlin and each function looks something like this.
Copy code
private val glShaderSource: CPointer<CFunction<(GLuint, GLsizei, CPointer<CPointerVar<GLcharVar>>?, CPointer<GLintVar>?) -> Unit>> get() = glfwGetProcAddress("glShaderSource")!!.reinterpret()
With another function to call it properly of course. Since, I'm not relying on c_interop to do any magic for me at the border between Kotlin and C. What types are actually allowed at the border? Everything in
kotlinx.cinterop.*
?