i forgot
This commit is contained in:
parent
5811d3676a
commit
988a429f16
4 changed files with 6 additions and 6 deletions
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue