Kotlin-native type conversion (glShaderSource)


#1

Currently I experiment kotlin-native for iOS and I try to make a small opengl application. But I have a problem with the function glShaderSource. How can I convert a String to this type:

kotlinx.cinterop.CValuesRef<kotlinx.cinterop.CPointerVar<platform.glescommon.GLcharVar /* = kotlinx.cinterop.ByteVarOf<platform.glescommon.GLchar /* = kotlin.Byte */> */> /* = kotlinx.cinterop.CPointerVarOf<kotlinx.cinterop.CPointer<kotlinx.cinterop.ByteVarOf<platform.glescommon.GLchar /* = kotlin.Byte */>>> */>?, length: kotlinx.cinterop.CValuesRef<platform.glescommon.GLintVar /* = kotlinx.cinterop.IntVarOf<platform.glescommon.GLint /* = kotlin.Int */> */>

Thanks


#2

resolve

cValuesOf(source.cstr.getPointer(memScope))