Banuba SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
platform
desktop
player_api
bnb
player_api
opengl
opengl_renderbuffer.hpp
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
bnb::player_api
6
{
7
8
class
opengl_renderbuffer
9
{
10
public
:
11
opengl_renderbuffer();
12
~opengl_renderbuffer();
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
Generated by
1.17.0