Mountain  1.0.0
Simple C++ 2D Game Framework
gpu_vertex_array.hpp
1 #pragma once
2 
3 #include <string_view>
4 
5 #include "Mountain/core.hpp"
6 
7 namespace Mountain::Graphics
8 {
10  struct MOUNTAIN_API GpuVertexArray
11  {
12  void Create();
13 
14  void Delete();
15 
17  void Recreate();
18 
19  void SetDebugName(std::string_view name) const;
20 
21  [[nodiscard]]
22  uint32_t GetId() const;
23 
24  [[nodiscard]]
25  explicit operator uint32_t() const;
26 
27  private:
28  uint32_t m_Id = 0;
29  };
30 }
Low-level graphics API.
Definition: gpu_buffer.hpp:9
Low-level interface for OpenGL vertex arrays.