PDA

View Full Version : Vectors with Vertex arrays?



darkrappey
05-20-2007, 07:25 PM
Is it possible to use a std::vector in place of a c-style array of floats?

V-man
05-20-2007, 11:11 PM
yes

glVertexPointer(....., &mything[0]);

darkrappey
05-21-2007, 09:45 PM
thanks for the reply, sorry I didn't think of that on my own.