diff options
Hacky D2Q9 BGK LBM on GPU using GLSL compute shaders
Improvised on top of computicles's scaffolding.
Works in a world where _works_ is defined as "displays stuff on screen that invokes thoughts of fluid movement".
Diffstat (limited to 'src/buffer/vertex/lattice_cell_buffer.h')
-rw-r--r-- | src/buffer/vertex/lattice_cell_buffer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/buffer/vertex/lattice_cell_buffer.h b/src/buffer/vertex/lattice_cell_buffer.h new file mode 100644 index 0000000..c28319e --- /dev/null +++ b/src/buffer/vertex/lattice_cell_buffer.h @@ -0,0 +1,19 @@ +#pragma once + +#include <vector> + +#include <GL/glew.h> + +class LatticeCellBuffer { +private: + std::vector<GLfloat> _data; + + GLuint _array; + GLuint _buffer; + +public: + LatticeCellBuffer(); + ~LatticeCellBuffer(); + + GLuint getBuffer() const; +}; |