13 : reactor_(
std::move(reactor)) {
15 handle_ = reactor_->CreateHandle(
type);
21 std::shared_ptr<ReactorGLES> reactor,
30 : reactor_(
std::move(reactor)), handle_(handle) {}
33 if (!handle_.
IsDead() && reactor_) {
34 reactor_->CollectHandle(handle_);
47 std::swap(reactor_, other.reactor_);
48 std::swap(handle_, other.handle_);
Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can b...
constexpr bool IsDead() const
Determines if the handle is dead.
A unique handle to an OpenGL object. The collection of this handle scheduled the destruction of the a...
static UniqueHandleGLES MakeUntracked(std::shared_ptr< ReactorGLES > reactor, HandleType type)
UniqueHandleGLES(std::shared_ptr< ReactorGLES > reactor, HandleType type)
const HandleGLES & Get() const