marching-cubes-opengl/VertexBuffer.h
karl 7227fef749 It works!
Lots of minor fixes
2021-03-19 23:54:24 +01:00

24 lines
335 B
C++

#pragma once
// Must be the first include
#include <glad/glad.h>
// Other includes
#include <GLFW/glfw3.h>
class VertexBuffer {
public:
VertexBuffer();
void set_data(int size, const void *data, int flag);
void bind();
void draw();
private:
GLuint vertex_array;
GLuint vertex_buffer;
int size;
};