From 389da8159978571e8156ff7692bc595d957e846e Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 23 Feb 2019 16:10:08 +0100 Subject: 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. --- src/buffer/vertex/material_buffer.h | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/buffer/vertex/material_buffer.h (limited to 'src/buffer/vertex/material_buffer.h') 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 - -#include - -class MaterialBuffer { -private: - const GLuint _nX; - const GLuint _nY; - - GLuint _array; - GLuint _buffer; - -public: - MaterialBuffer(GLuint nX, GLuint nY, std::function&& geometry); - ~MaterialBuffer(); - - GLuint getBuffer() const; -}; -- cgit v1.2.3