vertex-buffer-objects

Properly update vertex buffer objects

情到浓时终转凉″ 提交于 2019-12-11 19:20:00
问题 I've got a training app written in winapi So, I've got GL initialized there and I've got node-based system, that can be described by couple of classes class mesh { GLuint vbo_index; //this is for having unique vbo float *vertex_array; float *normal_array; unsigned int vertex_count; etc.. //all those mesh things. .... } class node { bool is_mesh; //the node may or may not represent a mesh mesh * mesh_ptr; //if it does then this pointer is a valid address } I've also got 2 global variables for