|
Re: Arrays, pointers, vectors, oh my!
[Re: Widi]
#305222
01/13/10 16:47
01/13/10 16:47
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
The Engine supports only 64 VECTOR Pointer
wrong. there is no limit on that. thing about 64 is this: vector funtion returns a temporary VECTOR* right? if you call them more than 64 times it starts returning same vector* s again, so you should only use it for calculations and not vector* init.
3333333333
|
|
|
Re: Arrays, pointers, vectors, oh my!
[Re: Widi]
#305361
01/14/10 12:09
01/14/10 12:09
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
G'day, The thing with the vectors is when you use something like, "vec_set(my.x, vector(1, 2, 3));" -- that vector function can only return a pointer to one of 64 internal vectors. This'll rarely be an issue, unless you pass a pointer to a temporary vector to a function, and that function has 64 or more "vector(...)" calls in it before it is finished with the information in the temporary vector you passed to it. I hope that makes sense Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
|