Support direct access to buffers from gfx::mesh
This commit is contained in:
parent
28b4bad3a7
commit
6690e23037
1 changed files with 4 additions and 0 deletions
|
|
@ -183,6 +183,10 @@ namespace psemek::gfx
|
||||||
GLenum primitive_type() const { return info_.primitive_type_; }
|
GLenum primitive_type() const { return info_.primitive_type_; }
|
||||||
GLenum index_type() const { return info_.index_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
|
// Drawing commands
|
||||||
|
|
||||||
void draw() const override;
|
void draw() const override;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue