Alright, well, i'm halfway through writing my .ase -> .dans file converter =P... Right now my program reads in Verticies, Faces, Face Normals, and Vert-Normals from an .ase file. Now what i want to be able to do is write a .dans (my own file format) file that has what i want... (the .cpp structure to draw the model). In this new file format i define a model... model has verts, faces, normals... And i use
#define float vect[3];
model->verts = new vect3 [numvertices]
now the problem is, normally when i write code, if i make a vertex array, i use
static float verticies[20][3] = {{x,y,z}, {x,y,z}....} for the 20 or so verticies i have. But the problem here is, this is being put into a class (model). And this model is being dynamically defined at the beginning of the file by a "new" command. How can i define a whole array at one time?
Is it something like:
model->verts[][] = {{x,y,z}, {x,y,z},...}
???
just leave those brackets blank?
Thanks a bunch for all the help up to here on my program, and Thanks in advance just for reading to here! =P
Thanks!
Dan