But keep getting segfaults. The sizes for all the arrays have to be the same don’t they ? So if I have a 4X4 grid that means 16 verts 16 Normals (Vert Norms) and 16 Tex Coords - one for each vert ? I have a struct for each aray:
typedef struct // for Verts and Norms and tris
typedef struct // for Tex
Can I create an array of these types :
and put my values in there? or are you not to use User defined types and just put the vert x,y,z into a normal 1D array sequentially
What about drawing Triangles ?
If I fill my triangle array, does numTriangles become 18 for a 4x4 vert grid ? or numverts * 3 (Which I’ve seen done…if numverts is 16)