BlockGame/gl/VertexArray.h

27 lines
408 B
C
Raw Normal View History

2022-02-05 20:44:31 +00:00
//
// Created by lukas on 04.02.22.
//
#ifndef OPENGLTEST_VERTEXARRAY_H
#define OPENGLTEST_VERTEXARRAY_H
#include <vector>
#include "VertexBuffer.h"
class VertexArray {
private:
unsigned handle;
public:
VertexArray(const VertexBuffer& buff);
void Bind() const;
2022-02-06 21:53:29 +00:00
void add(int index, int size, int stride, int pos);
2022-02-05 20:44:31 +00:00
unsigned getHandle() const;
};
#endif //OPENGLTEST_VERTEXARRAY_H