Render-buffer object class. More...
#include <render_buffer.h>
Public Member Functions | |
Construction | |
CL_RenderBuffer () | |
Constructs a null instance. | |
CL_RenderBuffer (CL_GraphicContext &context, int width, int height, CL_TextureFormat internal_format=cl_rgba, int multisample_samples=0) | |
Constructs a RenderBuffer. | |
Attributes | |
bool | is_null () const |
Returns true if this object is invalid. | |
void | throw_if_null () const |
Throw an exception if this object is invalid. | |
const CL_Size & | get_size () const |
Returns the render buffer size. | |
CL_RenderBufferProvider * | get_provider () const |
Get Provider. | |
Operations | |
bool | operator== (const CL_RenderBuffer &other) const |
Equality operator. |
Render-buffer object class.
CL_RenderBuffer::CL_RenderBuffer | ( | ) |
Constructs a null instance.
CL_RenderBuffer::CL_RenderBuffer | ( | CL_GraphicContext & | context, | |
int | width, | |||
int | height, | |||
CL_TextureFormat | internal_format = cl_rgba , |
|||
int | multisample_samples = 0 | |||
) |
Constructs a RenderBuffer.
context | = Graphic Context | |
width | = value | |
height | = value | |
internal_format | = Texture Format |
CL_RenderBufferProvider* CL_RenderBuffer::get_provider | ( | ) | const |
Get Provider.
const CL_Size& CL_RenderBuffer::get_size | ( | ) | const |
Returns the render buffer size.
bool CL_RenderBuffer::is_null | ( | ) | const [inline] |
Returns true if this object is invalid.
bool CL_RenderBuffer::operator== | ( | const CL_RenderBuffer & | other | ) | const |
Equality operator.
void CL_RenderBuffer::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.