mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
19 lines
319 B
C++
19 lines
319 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "vertex.h"
|
|
|
|
class VertexBufferObject {
|
|
private:
|
|
unsigned int _id;
|
|
|
|
public:
|
|
VertexBufferObject(std::vector<Vertex> vertices);
|
|
~VertexBufferObject();
|
|
|
|
inline unsigned int id() const { return _id; }
|
|
|
|
inline void bind() const;
|
|
inline void unbind() const;
|
|
}; |