PDA

View Full Version : Vectors with Vertex arrays?



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

V-man
05-21-2007, 12:11 AM
yes

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

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