   Vectors and VBO's
  Hey Guys I'm trying to pass a Vector Array Into A VBO but it's not working at all, however it works perfect if I pass a Normal float Array to it is there something special I hae to do?? This is what Im doing at the moment...Loading The VBO:vector&lt;float&gt;::iterator DisplayIt;DisplayIt = TempObject.DisplayArray.begin();  glGenBuffers(1, &TempObject.VBO);glBindBuffer(GL_ARRAY_BUFFER, TempObject.VBO);glBufferData(GL_ARRAY_BUFFER, 3*6*sizeof(float) ,&DisplayIt, GL_STATIC_DRAW);where DisplayArray is defined as:vector<float> DisplayArray;and is just loaded like:TempObject.DisplayArray.push_back(TempPolly.Vertex[0]);//Pushes X CoOrdTempObject.DisplayArray.push_back(TempPolly.Vertex[1]);//Pushes Y CoOrdTempObject.DisplayArray.push_back(TempPolly.Vertex[2]);//Pushes Z CoOrdInside A LoopI'm Pretty New To Vectors but to my knowledge this should work fine   
  How about this instead?glBufferData(GL_ARRAY_BUFFER, 3*6*sizeof(float) ,&(TempObject.DisplayArray[0]), GL_STATIC_DRAW);I'm not real experienced with iterators, but I don't think you can just use them interchangeably with pointers.   ;  Cheers, Iv'e never would have got that myself Iv'e never seen this syntax before:&(TempObject.DisplayArray[0])But I can see It comming In handy :)   