Matej Kormuth
10/15/2018, 8:22 PMtypedef struct GLFWwindow GLFWwindow;
in GLFW are being mapped to kotlinx.cinterop.CPointer<cnames.structs.GLFWwindow>?
and have "ERROR" texts in IDE next to them.Dominaezzz
10/15/2018, 8:30 PMDominaezzz
10/15/2018, 8:30 PMolonho
10/15/2018, 8:33 PMDominaezzz
10/15/2018, 8:33 PMDominaezzz
10/15/2018, 8:38 PMGLFWwindow
.Matej Kormuth
10/15/2018, 8:44 PMMatej Kormuth
10/15/2018, 8:49 PMclass GLFWvidmode(rawPtr: NativePtr) : CStructVar(rawPtr) {
.olonho
10/15/2018, 8:51 PMagrosner
10/15/2018, 8:52 PMkotlinx.cinterop.CPointer<cnames.structs.GLFWwindow>
youll have to unwrap using .useContents { }
- that wasn't clear to me without some looking upMatej Kormuth
10/15/2018, 8:55 PMtypedef struct GLFWwindow GLFWwindow;
concerning the GLFWwindow.Dominaezzz
10/15/2018, 8:57 PMglfwCreateWindow
function defined? What does it return?Matej Kormuth
10/15/2018, 8:59 PMpublic fun glfwCreateWindow(width: <http://kotlin.Int|kotlin.Int>, height: <http://kotlin.Int|kotlin.Int>, title: kotlin.String?, monitor: kotlinx.cinterop.CValuesRef<cnames.structs.GLFWmonitor>?, share: kotlinx.cinterop.CValuesRef<cnames.structs.GLFWwindow>?): kotlinx.cinterop.CPointer<cnames.structs.GLFWwindow>? { /* compiled code */ }
Dominaezzz
10/15/2018, 9:01 PMMatej Kormuth
10/15/2018, 9:01 PMDominaezzz
10/15/2018, 9:02 PMMatej Kormuth
10/15/2018, 9:10 PM