Class wrapping renderbuffer-related functionality with direct state access. More...
#include </home/chochlik/devel/oglplus/include/oglplus/dsa/renderbuffer.hpp>
Public Types | |
typedef RenderbufferTarget | Target |
Renderbuffer bind targets. | |
Public Member Functions | |
void | Storage (PixelDataInternalFormat internalformat, GLsizei width, GLsizei height) |
Set the renderbuffer storage parameters. More... | |
void | Storage (const images::ImageSpec &image_spec) |
Set the renderbuffer storage parameters. More... | |
void | StorageMultisample (GLsizei samples, PixelDataInternalFormat internalformat, GLsizei width, GLsizei height) |
Set the renderbuffer multisample storage parameters. More... | |
GLsizei | Width (void) const |
Returns the width of the renderbuffer as it was specified by Storage*. More... | |
GLsizei | Height (void) const |
Returns the height of the renderbuffer as it was specified by Storage*. More... | |
GLsizei | RedSize (void) const |
Returns the size in bits of the renderbuffer's red component. More... | |
GLsizei | GreenSize (void) const |
Returns the size in bits of the renderbuffer's green component. More... | |
GLsizei | BlueSize (void) const |
Returns the size in bits of the renderbuffer's blue component. More... | |
GLsizei | AlphaSize (void) const |
Returns the size in bits of the renderbuffer's alpha component. More... | |
GLsizei | DepthSize (void) const |
Returns the size in bits of the renderbuffer's depth component. More... | |
GLsizei | StencilSize (void) const |
Returns the size in bits of the renderbuffer's stencil component. More... | |
GLsizei | Samples (void) const |
Returns the number of samples of the renderbuffer. More... | |
PixelDataInternalFormat | InternalFormat (void) const |
Returns the internal format of the renderbuffer. More... | |
void | Bind (Target target=Target::Renderbuffer) const |
Binds this renderbuffer to the specified target . More... | |
Static Public Member Functions | |
static void | Bind (Target target, RenderbufferName renderbuffer) |
Binds the specified renderbuffer to the specified target . More... | |
static RenderbufferName | Binding (Target target) |
Returns the current Renderbuffer bound to specified target . More... | |
Class wrapping renderbuffer-related functionality with direct state access.
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::AlphaSize | ( | void | ) | const |
Returns the size in bits of the renderbuffer's alpha component.
GL_RENDERBUFFER_ALPHA_SIZE
|
staticinherited |
Binds the specified renderbuffer
to the specified target
.
References oglplus::GetGLName().
|
inherited |
Binds this renderbuffer to the specified target
.
|
staticinherited |
Returns the current Renderbuffer bound to specified target
.
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::BlueSize | ( | void | ) | const |
Returns the size in bits of the renderbuffer's blue component.
GL_RENDERBUFFER_BLUE_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::DepthSize | ( | void | ) | const |
Returns the size in bits of the renderbuffer's depth component.
GL_RENDERBUFFER_DEPTH_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::GreenSize | ( | void | ) | const |
Returns the size in bits of the renderbuffer's green component.
GL_RENDERBUFFER_GREEN_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Height | ( | void | ) | const |
Returns the height of the renderbuffer as it was specified by Storage*.
GL_RENDERBUFFER_HEIGHT
PixelDataInternalFormat oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::InternalFormat | ( | void | ) | const |
Returns the internal format of the renderbuffer.
GL_RENDERBUFFER_INTERNAL_FORMAT
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::RedSize | ( | void | ) | const |
Returns the size in bits of the renderbuffer's red component.
GL_RENDERBUFFER_RED_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Samples | ( | void | ) | const |
Returns the number of samples of the renderbuffer.
GL_RENDERBUFFER_SAMPLES
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::StencilSize | ( | void | ) | const |
void oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Storage | ( | PixelDataInternalFormat | internalformat, |
GLsizei | width, | ||
GLsizei | height | ||
) |
Set the renderbuffer storage parameters.
void oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Storage | ( | const images::ImageSpec & | image_spec | ) |
Set the renderbuffer storage parameters.
void oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::StorageMultisample | ( | GLsizei | samples, |
PixelDataInternalFormat | internalformat, | ||
GLsizei | width, | ||
GLsizei | height | ||
) |
Set the renderbuffer multisample storage parameters.
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Width | ( | void | ) | const |
Returns the width of the renderbuffer as it was specified by Storage*.
GL_RENDERBUFFER_WIDTH