How the heck can I define a variable which contains an array of structs?
Just for example:
Vec3 struct
X REAL4 ?
Y REAL4 ?
Z REAL4 ?
Vec3 ends
NumElements equ 32
Object SomeObject,_ID_,Primer
...
DefineVariable TheArray,Vec3,NumElements dup {}
ObjectEnd
So far I've gotten around it by declaring a larger struct, again purely for example:
VecArray struct
v1 Vec3 <>
v2 Vec3 <>
...
vN Vec3 <>
VecArray ends
Now I can declare TheArray (in above example) as a VecArray, and everything is peachy..
but what if the number of elements is arbitrary, as implied by the use of the NumElements equate?
Hoping for a realistic solution to this common problem, perhaps a DefineArray macro is called for?
Have a nice day :)
Posted on 2005-08-22 00:41:36 by Homer