BlockGame/gl/IndexBuffer.h

27 lines
420 B
C
Raw Normal View History

2022-02-05 20:44:31 +00:00
//
// Created by lukas on 03.02.22.
//
#ifndef OPENGLTEST_INDEXBUFFER_H
#define OPENGLTEST_INDEXBUFFER_H
#define GL_GLEXT_PROTOTYPES
class IndexBuffer {
private:
unsigned handle;
unsigned count;
public:
IndexBuffer(const unsigned *data, unsigned count);
virtual ~IndexBuffer();
void Bind() const;
void UnBind() const;
unsigned getcount() const;
};
#endif //OPENGLTEST_INDEXBUFFER_H