Answers for "VBO with vector"

0

VBO with vector

glBufferData(
   GL_ARRAY_BUFFER,
   vertices.size() * sizeof(Vertex),
   &vertices[0],
   GL_STATIC_DRAW
);
Posted by: Guest on August-18-2021
0

VBO with vector

glBufferData(
   GL_ARRAY_BUFFER,
   vertices.size() * sizeof(Vertex),
   &vertices.front(),
   GL_STATIC_DRAW
);
Posted by: Guest on August-18-2021

Browse Popular Code Answers by Language