Ok, finally got the Vector thing figured out. You were right about not using "at()", simply replacing every occurrence of it with "vertices[n]" did the trick, and it's working fine now.
That mildly surprises me, but I'm not intimately familiar with the semantics of .at() since I have never once used it in 20 years. :)
works quite well. Despite that, is there a reason I should use another format? Just asking because you said not to use the "&vertices[0]" idiom. Not quite sure what you meant by that. Removing the ampersand, or the "[0]" reference causes a crash.
Like I said, use .data() instead. Replace &indices[0] with indices.data()
Regarding this, I think EASTL had a member function for getting the byte length of a vector. Are you aware of any talk about upgrades to std::vector along these lines? I was disappointed recently to find that there doesn't appear to be a standard way to refer to a vector's type that works with sizeof(). I was thinking that sizeof(vec.value_type) was possible until I tried it.
I have an extremely vague recollection of it being discussed on the main isocpp reflector a while ago, but I don't recall an actual paper being submitted.
Quite possibly worth bringing up on the c++ sg14 reflector. *nudge* :)