From 34566b28a82869cbf004d91c6d658ba71d40ed97 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 18 Apr 2019 22:15:39 +0200 Subject: Bind key to reset lattice buffers i.e. restarting the simulation without clearing the geometry --- src/buffer/vertex/lattice_cell_buffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buffer/vertex/lattice_cell_buffer.h') diff --git a/src/buffer/vertex/lattice_cell_buffer.h b/src/buffer/vertex/lattice_cell_buffer.h index e5e00a4..cabff67 100644 --- a/src/buffer/vertex/lattice_cell_buffer.h +++ b/src/buffer/vertex/lattice_cell_buffer.h @@ -4,6 +4,8 @@ class LatticeCellBuffer { private: + GLuint _nX; + GLuint _nY; GLuint _array; GLuint _buffer; @@ -11,5 +13,7 @@ public: LatticeCellBuffer(GLuint nX, GLuint nY); ~LatticeCellBuffer(); + void init(); + GLuint getBuffer() const; }; -- cgit v1.2.3