Kanzi  3.9.4
Kanzi Engine API
kanzi::GLRenderbufferHandle Class Reference

GLRenderbufferHandle manages RAII ownership for GL renderbuffer object. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/gl_renderbuffer_handle.hpp>

Public Member Functions

unsigned int get () const
 Returns GL handle to the renderbuffer object, or 0 if no GL renderbuffer is owned. More...
 
 GLRenderbufferHandle ()
 Constructs an empty GLRenderbufferHandle which does not own any GL renderbuffer object. More...
 
 GLRenderbufferHandle (Renderer *renderer)
 Creates a new GL renderbuffer object with renderer and constructs a GLRenderbufferHandle which owns it. More...
 
 GLRenderbufferHandle (GLRenderbufferHandle &&other)
 
 operator bool_type () const
 
GLRenderbufferHandleoperator= (GLRenderbufferHandle &&other)
 
unsigned int release ()
 Releases the ownership of the GL renderbuffer if any. More...
 
void reset ()
 Destroys the GL renderbuffer object currently managed by the GLRenderbufferHandle (if any) More...
 
 ~GLRenderbufferHandle ()
 

Friends

void swap (GLRenderbufferHandle &left, GLRenderbufferHandle &right)
 

Detailed Description

GLRenderbufferHandle manages RAII ownership for GL renderbuffer object.

Constructor & Destructor Documentation

◆ GLRenderbufferHandle() [1/3]

kanzi::GLRenderbufferHandle::GLRenderbufferHandle ( )
explicit

Constructs an empty GLRenderbufferHandle which does not own any GL renderbuffer object.

◆ GLRenderbufferHandle() [2/3]

kanzi::GLRenderbufferHandle::GLRenderbufferHandle ( Renderer renderer)
explicit

Creates a new GL renderbuffer object with renderer and constructs a GLRenderbufferHandle which owns it.

Parameters
rendererRenderer

◆ ~GLRenderbufferHandle()

kanzi::GLRenderbufferHandle::~GLRenderbufferHandle ( )

◆ GLRenderbufferHandle() [3/3]

kanzi::GLRenderbufferHandle::GLRenderbufferHandle ( GLRenderbufferHandle &&  other)
inline

Member Function Documentation

◆ release()

unsigned int kanzi::GLRenderbufferHandle::release ( )

Releases the ownership of the GL renderbuffer if any.

get() returns 0 after the call.

Returns
Handle to the GL renderbuffer object

◆ operator=()

GLRenderbufferHandle& kanzi::GLRenderbufferHandle::operator= ( GLRenderbufferHandle &&  other)
inline

◆ get()

unsigned int kanzi::GLRenderbufferHandle::get ( ) const
inline

Returns GL handle to the renderbuffer object, or 0 if no GL renderbuffer is owned.

◆ reset()

void kanzi::GLRenderbufferHandle::reset ( )

Destroys the GL renderbuffer object currently managed by the GLRenderbufferHandle (if any)

◆ operator bool_type()

kanzi::GLRenderbufferHandle::operator bool_type ( ) const
inline

Friends And Related Function Documentation

◆ swap

void swap ( GLRenderbufferHandle left,
GLRenderbufferHandle right 
)
friend

The documentation for this class was generated from the following file: