CG-Project2
Loading...
Searching...
No Matches
VertexArray.hpp
1#pragma once
2
3#include "Buffer.hpp"
4
5namespace ogl {
6class VertexArray : public Buffer {
7 public:
8 // void linkVertexBuffer();
9 void linkAttribFast(const unsigned int &layout, const int &size, const unsigned int &type,
10 const bool &normalize, const int &stride, void *offset) const;
11
12 virtual void onAttach() override;
13 virtual void onDetach() override;
14
15 virtual void bind() const override;
16 virtual void unbind() const override;
17
18 VertexArray() = default;
19 virtual ~VertexArray() override;
20};
21} // namespace ogl