Thank you for your time, please be patient with me.
At the risk of upsetting you, I understand the arrays and I understand the structures but what I am trying to get at is that, as shown in your first example above, the permitted one dimensional array for the sprite is taken up by the structure being 'equivalent' to the 1D array and thus using up all the entitlement the sprite data offers.
I had thought that each structure would actually be usable as an entity (item, variable) which could then be placed in a single element of a 1D array, so that when asking for say, sprite.DataArray(1) I would get back the structure x1,y1,z1, and sprite.DataArray(2) give x2,y2,z2.
I presume from what you say that what I have actually asked for cannot be done because it is 'equivalent to' a 2D array. I 'thought' that you had said, when this data issue began, that I could get around the 1D by using structures and my brain supplied the result mentioned in the previous para, but in fact it seems we must have been at cross purposes.
Now, if what I expected is available then I have failed miserably to comprehend how to obtain the second and subsequent complete structure items (sets of x,y,z) from the sprite data array elements.
:sign0085:
[Edit] So I should perhaps use a 1D array that holds... x,y,z,x1,y1,z1,... and step in threes which is an inelegant equivalent.
Should I have taken this to a different forum?
At the risk of upsetting you, I understand the arrays and I understand the structures but what I am trying to get at is that, as shown in your first example above, the permitted one dimensional array for the sprite is taken up by the structure being 'equivalent' to the 1D array and thus using up all the entitlement the sprite data offers.
I had thought that each structure would actually be usable as an entity (item, variable) which could then be placed in a single element of a 1D array, so that when asking for say, sprite.DataArray(1) I would get back the structure x1,y1,z1, and sprite.DataArray(2) give x2,y2,z2.
I presume from what you say that what I have actually asked for cannot be done because it is 'equivalent to' a 2D array. I 'thought' that you had said, when this data issue began, that I could get around the 1D by using structures and my brain supplied the result mentioned in the previous para, but in fact it seems we must have been at cross purposes.
Now, if what I expected is available then I have failed miserably to comprehend how to obtain the second and subsequent complete structure items (sets of x,y,z) from the sprite data array elements.
:sign0085:
[Edit] So I should perhaps use a 1D array that holds... x,y,z,x1,y1,z1,... and step in threes which is an inelegant equivalent.
Should I have taken this to a different forum?
Last edited: