-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRenderbuffer.hpp
More file actions
33 lines (25 loc) · 925 Bytes
/
Copy pathRenderbuffer.hpp
File metadata and controls
33 lines (25 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <cstdint>
#include "easygl/Export.hpp"
#include "easygl/Types.hpp"
#include "easygl/detail/GenerationTracked.hpp"
#include "easygl/detail/NonCopyable.hpp"
namespace easygl
{
class EASYGL_API Renderbuffer : public detail::NonCopyable, public detail::GenerationTracked
{
public:
Renderbuffer();
~Renderbuffer();
Renderbuffer(Renderbuffer&& other) noexcept;
Renderbuffer& operator=(Renderbuffer&& other) noexcept;
void create();
void destroy() noexcept;
void bind() const;
static void unbind();
[[nodiscard]] bool is_valid_gl_object() const;
void set_storage(InternalFormat internal_format, int width, int height);
void set_storage_multisample(int samples, InternalFormat internal_format, int width, int height);
[[nodiscard]] int get_parameter(RenderbufferParameter pname) const;
};
}