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=tf_rgba8, int multisample_samples=0)
 Constructs a RenderBuffer. More...
 
RenderBufferProviderget_provider () const
 Get Provider. More...
 
const Sizeget_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...
 

Detailed Description

Render-buffer object class.

Constructor & Destructor Documentation

clan::RenderBuffer::RenderBuffer ( )

Constructs a null instance.

clan::RenderBuffer::RenderBuffer ( GraphicContext context,
int  width,
int  height,
TextureFormat  texture_format = tf_rgba8,
int  multisample_samples = 0 
)

Constructs a RenderBuffer.

Parameters
context= Graphic Context
width= value
height= value
internal_format= Texture Format

Member Function Documentation

RenderBufferProvider* clan::RenderBuffer::get_provider ( ) const

Get Provider.

Returns
provider
const Size& clan::RenderBuffer::get_size ( ) const

Returns the render buffer size.

bool clan::RenderBuffer::is_null ( ) const
inline

Returns true if this object is invalid.

clan::RenderBuffer::operator bool ( ) const
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.


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