This commit is contained in:
Lauchmelder 2021-12-24 15:14:15 +01:00
parent 5811d3676a
commit 988a429f16
4 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@ namespace lol
class ElementBuffer : public Buffer
{
public:
ElementBuffer(size_t count, unsigned int* elements, Usage usage = Usage::StaticDraw);
ElementBuffer(size_t count, const std::vector<unsigned int>& elements, Usage usage = Usage::StaticDraw);
inline size_t GetCount() const { return count; }

View file

@ -35,7 +35,7 @@ namespace lol
class VertexBuffer : public Buffer
{
public:
VertexBuffer(size_t size, float* data, Usage usage = Usage::StaticDraw);
VertexBuffer(size_t size, const std::vector<float>& data, Usage usage = Usage::StaticDraw);
inline void SetLayout(const BufferLayout& layout) { this->layout = layout; };
inline const BufferLayout& GetLayout() { return layout; }