Original Post
Hi folks!!!
Situation: I have this variables : vec3 * vertices, *normals, * texture_coords; int num_vertices;
All this (vec3*) variables have different pointers. Can I pack it to one VBO without losing time for creating mixed array (vertices,normals,...)?
What the second argument of glBufferSubData means? Is it a starting position (index) of allocated buffer where I want to update the data? If yes? how to work with it?
Thanks forward
Situation: I have this variables : vec3 * vertices, *normals, * texture_coords; int num_vertices;
All this (vec3*) variables have different pointers. Can I pack it to one VBO without losing time for creating mixed array (vertices,normals,...)?
GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *);What the second argument of glBufferSubData means? Is it a starting position (index) of allocated buffer where I want to update the data? If yes? how to work with it?
Thanks forward