From ab30228b1a57053323363674fa7f137c0329a180 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 7 Jul 2020 23:12:04 -0300 Subject: 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 =) --- Project/IndexBuffer.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Project/IndexBuffer.h (limited to 'Project/IndexBuffer.h') diff --git a/Project/IndexBuffer.h b/Project/IndexBuffer.h new file mode 100644 index 0000000..ed31e02 --- /dev/null +++ b/Project/IndexBuffer.h @@ -0,0 +1,20 @@ +#ifndef INDEXBUFFER_H +#define INDEXBUFFER_H + +class IndexBuffer +{ +public: + //IndexBuffer() {} + IndexBuffer(const unsigned int* data, unsigned int count); + ~IndexBuffer(); + + void Bind() const; + void Unbind() const; + + inline unsigned int GetCount() const { return m_count; } + +protected: + unsigned int m_rendererID = 0; + unsigned int m_count = 0; +}; +#endif \ No newline at end of file -- cgit