Support direct access to buffers from gfx::mesh

This commit is contained in:
Nikita Lisitsa 2020-12-10 21:56:31 +03:00
parent 28b4bad3a7
commit 6690e23037

View file

@ -183,6 +183,10 @@ namespace psemek::gfx
GLenum primitive_type() const { return info_.primitive_type_; }
GLenum index_type() const { return info_.index_type_; }
buffer & vertex_buffer() { return vertex_buffer_; }
buffer & index_buffer() { return index_buffer_; }
buffer & instance_buffer() { return instance_buffer_; }
// Drawing commands
void draw() const override;