BlockGame/gl/VertexArray.h
2022-02-06 22:53:29 +01:00

27 lines
408 B
C++

//
// 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;
void add(int index, int size, int stride, int pos);
unsigned getHandle() const;
};
#endif //OPENGLTEST_VERTEXARRAY_H