aboutsummaryrefslogtreecommitdiff
path: root/src/buffer/vertex/fluid_cell_buffer.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-04-18 22:15:39 +0200
committerAdrian Kummerlaender2019-04-18 22:15:39 +0200
commit34566b28a82869cbf004d91c6d658ba71d40ed97 (patch)
tree5322ec9bf7f48a96390d638d410aff0abfe21348 /src/buffer/vertex/fluid_cell_buffer.h
parent1ad4daa0289c56e3d6b896d5037002aa6b461674 (diff)
downloadcompustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar.gz
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar.bz2
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar.lz
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar.xz
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.tar.zst
compustream-34566b28a82869cbf004d91c6d658ba71d40ed97.zip
Bind key to reset lattice buffers
i.e. restarting the simulation without clearing the geometry
Diffstat (limited to 'src/buffer/vertex/fluid_cell_buffer.h')
-rw-r--r--src/buffer/vertex/fluid_cell_buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer/vertex/fluid_cell_buffer.h b/src/buffer/vertex/fluid_cell_buffer.h
index 8afb342..791ebea 100644
--- a/src/buffer/vertex/fluid_cell_buffer.h
+++ b/src/buffer/vertex/fluid_cell_buffer.h
@@ -16,6 +16,8 @@ public:
FluidCellBuffer(GLuint nX, GLuint nY, std::function<int(int,int)>&& geometry);
~FluidCellBuffer();
+ void init(std::function<int(int,int)>&& geometry);
+
GLuint getBuffer() const;
void draw() const;