diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-07-07 23:12:04 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-07-07 23:12:04 -0300 |
commit | ab30228b1a57053323363674fa7f137c0329a180 (patch) | |
tree | 50849a3680d61a2428665cc1035f1f4215870acb /Project/VertexBuffer.h | |
parent | 6c0e98a2727d07e1fbb38b78c27d68e98ad09465 (diff) | |
download | PSP.git-ab30228b1a57053323363674fa7f137c0329a180.tar.gz PSP.git-ab30228b1a57053323363674fa7f137c0329a180.tar.xz PSP.git-ab30228b1a57053323363674fa7f137c0329a180.zip |
Voltage heat map implemented
Voltage heat map implemented using modern OpenGL =)
New external library required:
-GLEW
-GLFW
-GLM (incorporeted at the source)
Old memory leaks fixed =)
Diffstat (limited to 'Project/VertexBuffer.h')
-rw-r--r-- | Project/VertexBuffer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Project/VertexBuffer.h b/Project/VertexBuffer.h new file mode 100644 index 0000000..e0d5950 --- /dev/null +++ b/Project/VertexBuffer.h @@ -0,0 +1,21 @@ +#ifndef VERTEXBUFFER_H +#define VERTEXBUFFER_H + +#include <GL/glew.h> + +class VertexBuffer +{ +public: + //VertexBuffer() {} + VertexBuffer(const void* data, unsigned int size, unsigned int usage = GL_STATIC_DRAW); + ~VertexBuffer(); + + void SetSubData(const void* data, const unsigned int& size) const; + + void Bind() const; + void Unbind() const; + +protected: + unsigned int m_rendererID = 0; +}; +#endif
\ No newline at end of file |