diff options
Store material in fluid buffer and improve visualization
Replaces the density value which is actually not that useful for visualization.
Encoding integer values as floats by casting and comparing them using
exact floating point comparison is not very safe but works out for now.
Diffstat (limited to 'src/buffer/vertex/material_buffer.h')
-rw-r--r-- | src/buffer/vertex/material_buffer.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/buffer/vertex/material_buffer.h b/src/buffer/vertex/material_buffer.h deleted file mode 100644 index 4c61c55..0000000 --- a/src/buffer/vertex/material_buffer.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include <GL/glew.h> - -#include <functional> - -class MaterialBuffer { -private: - const GLuint _nX; - const GLuint _nY; - - GLuint _array; - GLuint _buffer; - -public: - MaterialBuffer(GLuint nX, GLuint nY, std::function<int(int,int)>&& geometry); - ~MaterialBuffer(); - - GLuint getBuffer() const; -}; |