mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
20 lines
471 B
C++
20 lines
471 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
class ElementBufferObject
|
|
{
|
|
private:
|
|
unsigned int _id = 0;
|
|
std::vector<unsigned int> _indices;
|
|
|
|
public:
|
|
ElementBufferObject();
|
|
ElementBufferObject(const std::vector<unsigned int>& indices);
|
|
ElementBufferObject(std::vector<unsigned int>&& indices);
|
|
|
|
inline unsigned int id() const { return _id; }
|
|
inline std::vector<unsigned int> indices() const { return _indices; }
|
|
|
|
inline void dispose() const;
|
|
}; |