Show differencesHistory of post edits
Posted 06 February 2013 - 04:26 PM
Ah ok, my bad, i honestly thought that would work, and had no way to check until now.
Theoretically you could use an std::vector<D3DXVECTOR2> and just push back values as needed, and then draw them by passing the address of the first element (&vec), and it would work the same, and would be exception safe too, as right now if you get an exception in between the new and delete calls by any chance, you leak the memory.
I though about that but, how do I pass the vector to the line->Draw(); it requires an array and I'm not sure how to pass my vector as an array?