Files
utad-3d/src/buffer.h
2025-02-20 14:38:57 +01:00

23 lines
372 B
C++

#ifndef BUFFER_H_
#define BUFFER_H_
#include <vector>
#include "../lib/glm/glm.hpp"
#include "vertex.h"
#include "shader.h"
class Buffer {
public:
Buffer(const std::vector<Vertex>& vertices, const std::vector<uint16_t>& indices);
~Buffer();
void Draw(const Shader& shader) const;
private:
uint32_t vao_, vbo_, ebo_;
GLsizei index_count_;
};
#endif // BUFFER_H_