Render-buffer object class. More...
#include <render_buffer.h>
Public Member Functions | |
RenderBuffer () | |
Constructs a null instance. More... | |
RenderBuffer (GraphicContext &context, int width, int height, TextureFormat texture_format=TextureFormat::rgba8, int multisample_samples=0) | |
Constructs a RenderBuffer. More... | |
RenderBufferProvider * | get_provider () const |
Get Provider. More... | |
const Size & | get_size () const |
Returns the render buffer size. More... | |
bool | is_null () const |
Returns true if this object is invalid. More... | |
operator bool () const | |
bool | operator== (const RenderBuffer &other) const |
Equality operator. More... | |
void | throw_if_null () const |
Throw an exception if this object is invalid. More... | |
Render-buffer object class.
clan::RenderBuffer::RenderBuffer | ( | ) |
Constructs a null instance.
clan::RenderBuffer::RenderBuffer | ( | GraphicContext & | context, |
int | width, | ||
int | height, | ||
TextureFormat | texture_format = TextureFormat::rgba8 , |
||
int | multisample_samples = 0 |
||
) |
Constructs a RenderBuffer.
context | = Graphic Context |
width | = value |
height | = value |
internal_format | = Texture Format |
RenderBufferProvider* clan::RenderBuffer::get_provider | ( | ) | const |
Get Provider.
const Size& clan::RenderBuffer::get_size | ( | ) | const |
Returns the render buffer size.
|
inline |
Returns true if this object is invalid.
|
inlineexplicit |
bool clan::RenderBuffer::operator== | ( | const RenderBuffer & | other | ) | const |
Equality operator.
void clan::RenderBuffer::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.