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