Hey there fellow devs, im looking for some help if possible, at the moment I'm been ask to create a cube in opengl, which I have done, but now I need to make it in vertex, edge face structure, now I had my cube created by just createing a huge array with each vertex point, but how can I create a custom variable, like a custom struct in C++
C++ code
does this work for JavaScript or is there a different way, cheers for the helpCode:struct Vector3{ float x, float y, float z };
Canvas


Reply With Quote
Bookmarks