Theres a way to get the size in bytes of a type? R...
# kotlin-native
n
Theres a way to get the size in bytes of a type? Right now I hardcode the Float size as 4 bytes, so to get the size of a FloatArray I’m doing
data.size * 4
, don’t know if is correct or not, because I’m having troubles getting the correct results with OpenGL, and also don’t know if this is rising the issue where the triangle isn’t draw how it supposed to be, the vertices are like in the original c++ tutorial (http://opengl-tutorial.org) and a final note, added a repo where I will be uploading all the tutorials written in kotlin native (https://github.com/norman784/kotlin-native-opengl-tutorial)