Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAussieSpoon

Posted 06 February 2013 - 05:31 PM

Never mind


#1AussieSpoon

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. smile.png

 

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[0]), 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?


PARTNERS