CG-Project2
Loading...
Searching...
No Matches
Buffer.hpp
1#pragma once
2
3#include "../Graphic.hpp"
4
5namespace ogl {
6 class Buffer {
7 public:
8 inline unsigned int getId() const { return this->m_id; }
9
10 inline virtual void onAttach() {}
11 inline virtual void onDetach() {}
12
13 inline virtual void bind() const {}
14 inline virtual void unbind() const {}
15
16 Buffer() = default;
17 virtual ~Buffer() = default;
18
19 protected:
20 unsigned int m_id = 0;
21 };
22} // namespace ogl