ok, I am trying to extract some data and the size of that data out of a structure. the structure is inside a class.
Class is called MODEL_3DS and I have created an object instance of the class called m
the structure is as follows
I can get to the data in for normal items using m.Objects[i].numTexCoords which give me the number of texture coordinatesCode:struct Object { float *Vertexes; // The array of vertices float *TexCoords; // The array of texture coordinates for the vertices int numVerts; // The number of vertices int numTexCoords; // The number of vertices }; Object *Objects; // The array of objects in the model
Question is when since vertexes is just a pointer it just contains a 4 byte address to the data. How do I get to the data and the size of the data..
I have tried:
sizeof(&m.objects[0].Vertexes) to no avail.
thanks for your help...andrew




Reply With Quote