Question : VBO with vector
Answered by : glamorous-goosander-3q3pz92h3pk0
glBufferData( GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices.front(), GL_STATIC_DRAW
);
Source : https://stackoverflow.com/questions/7173494/vbos-with-stdvector | Last Update : Wed, 25 Aug 21
Question : VBO with vector
Answered by : glamorous-goosander-3q3pz92h3pk0
glBufferData( GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices[0], GL_STATIC_DRAW
);
Source : https://stackoverflow.com/questions/7173494/vbos-with-stdvector | Last Update : Wed, 25 Aug 21