2022-12-12 20:41:53 +08:00

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;
};