24 lines
374 B
C
24 lines
374 B
C
|
//
|
||
|
// Created by lukas on 03.02.22.
|
||
|
//
|
||
|
|
||
|
#ifndef OPENGLTEST_VERTEXBUFFER_H
|
||
|
#define OPENGLTEST_VERTEXBUFFER_H
|
||
|
|
||
|
#define GL_GLEXT_PROTOTYPES
|
||
|
|
||
|
class VertexBuffer {
|
||
|
private:
|
||
|
unsigned handle;
|
||
|
public:
|
||
|
VertexBuffer(const void* data, const unsigned size);
|
||
|
|
||
|
virtual ~VertexBuffer();
|
||
|
|
||
|
void Bind() const;
|
||
|
void UnBind() const;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //OPENGLTEST_VERTEXBUFFER_H
|