norman784
06/11/2018, 3:17 PMgaetan
06/11/2018, 6:02 PMolonho
06/12/2018, 7:51 AMnorman784
06/12/2018, 10:02 AMnorman784
06/12/2018, 10:02 AMnorman784
06/13/2018, 2:57 PMglVertexAttribPointer null it works kinda (but with the vertex coordinates)olonho
06/13/2018, 3:06 PMnorman784
06/13/2018, 3:57 PMglVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*)(3 * sizeof(float))); maybe I can reformulate te question and ask how can I translate to kotlin this (void*)(3 * sizeof(float)), tried with cValuesOf(3 * FloatVar.size) and val pointer: FloatVar = alloc(); pointer.value = 3 * FloatVar size; glVertexAttribPointer(...., pointer.prt);olonho
06/13/2018, 4:33 PMvoid* is what you indeed want, then 12.toLong().toCPointer() is what you neednorman784
06/13/2018, 4:49 PMerror: type inference failed: Not enough information to infer parameter T in fun <T : CPointed> Long.toCPointer(): CPointer<T>?
Please specify it explicitly.olonho
06/13/2018, 4:52 PM12.toLong().toCPointer<COpaque>()norman784
06/13/2018, 4:56 PM