Banuba SDK
opengl_renderbuffer.hpp
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace bnb::player_api
6 {
7 
9  {
10  public:
13 
14  void prepare(int32_t width, int32_t height);
15  static void unbind();
16 
17  int32_t get_width() const noexcept;
18  int32_t get_height() const noexcept;
19 
20  uint32_t get_texture() const noexcept;
21 
22  private:
23  uint32_t m_framebuffer{0};
24  uint32_t m_texture{0};
25 
26  int32_t m_width{0};
27  int32_t m_height{0};
28  }; // class opengl_renderbuffer
29 
30 } // namespace bnb::player_api
bnb::player_api::opengl_renderbuffer
Definition: opengl_renderbuffer.hpp:8