OGLplus (0.45.0) a C++ wrapper for OpenGL

Class wrapping renderbuffer-related functionality. More...

#include </home/chochlik/devel/oglplus/include/oglplus/renderbuffer.hpp>

Inheritance diagram for oglplus::RenderbufferOps:

Public Types

typedef RenderbufferTarget Target
 Renderbuffer bind targets.
 

Public Member Functions

void Bind (Target target=Target::Renderbuffer) const
 Binds this renderbuffer to the target. More...
 

Static Public Member Functions

static void Unbind (Target target=Target::Renderbuffer)
 Bind the name 0 to the target. More...
 
static void Storage (Target target, PixelDataInternalFormat internalformat, GLsizei width, GLsizei height)
 Set the renderbuffer storage parameters. More...
 
static void Storage (Target target, const images::ImageSpec &image_spec)
 Set the renderbuffer storage parameters. More...
 
static void StorageMultisample (Target target, GLsizei samples, PixelDataInternalFormat internalformat, GLsizei width, GLsizei height)
 Set the renderbuffer multisample storage parameters. More...
 
static GLsizei Width (Target target)
 Returns the width of the renderbuffer as it was specified by Storage*. More...
 
static GLsizei Height (Target target)
 Returns the height of the renderbuffer as it was specified by Storage*. More...
 
static GLsizei RedSize (Target target)
 Returns the size in bits of the renderbuffer's red component. More...
 
static GLsizei GreenSize (Target target)
 Returns the size in bits of the renderbuffer's green component. More...
 
static GLsizei BlueSize (Target target)
 Returns the size in bits of the renderbuffer's blue component. More...
 
static GLsizei AlphaSize (Target target)
 Returns the size in bits of the renderbuffer's alpha component. More...
 
static GLsizei DepthSize (Target target)
 Returns the size in bits of the renderbuffer's depth component. More...
 
static GLsizei StencilSize (Target target)
 Returns the size in bits of the renderbuffer's stencil component. More...
 
static GLsizei Samples (Target target)
 Returns the number of samples of the renderbuffer. More...
 
static PixelDataInternalFormat InternalFormat (Target target)
 Returns the internal format of the renderbuffer. More...
 

Detailed Description

Class wrapping renderbuffer-related functionality.

Note
Do not use this class directly, use Renderbuffer instead.
Related OpenGL symbols:
glGenRenderbuffers glDeleteRenderbuffers glIsRenderbuffer

Member Function Documentation

static GLsizei oglplus::RenderbufferOps::AlphaSize ( Target  target)
static

Returns the size in bits of the renderbuffer's alpha component.

See Also
RedSize
GreenSize
BlueSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_ALPHA_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::AlphaSize().

void oglplus::RenderbufferOps::Bind ( Target  target = Target::Renderbuffer) const

Binds this renderbuffer to the target.

Related OpenGL symbols:
glBindRenderbuffer
static GLsizei oglplus::RenderbufferOps::BlueSize ( Target  target)
static

Returns the size in bits of the renderbuffer's blue component.

See Also
RedSize
GreenSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_BLUE_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::BlueSize().

static GLsizei oglplus::RenderbufferOps::DepthSize ( Target  target)
static

Returns the size in bits of the renderbuffer's depth component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
StencilSize
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_DEPTH_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::DepthSize().

static GLsizei oglplus::RenderbufferOps::GreenSize ( Target  target)
static

Returns the size in bits of the renderbuffer's green component.

See Also
RedSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_GREEN_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::GreenSize().

static GLsizei oglplus::RenderbufferOps::Height ( Target  target)
static

Returns the height of the renderbuffer as it was specified by Storage*.

See Also
Width
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_HEIGHT

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::Height().

static PixelDataInternalFormat oglplus::RenderbufferOps::InternalFormat ( Target  target)
static

Returns the internal format of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_INTERNAL_FORMAT

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::InternalFormat().

static GLsizei oglplus::RenderbufferOps::RedSize ( Target  target)
static

Returns the size in bits of the renderbuffer's red component.

See Also
Green
Blue
Alpha
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_RED_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::RedSize().

static GLsizei oglplus::RenderbufferOps::Samples ( Target  target)
static

Returns the number of samples of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_SAMPLES

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::Samples().

static GLsizei oglplus::RenderbufferOps::StencilSize ( Target  target)
static

Returns the size in bits of the renderbuffer's stencil component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
DepthSize
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_STENCIL_SIZE

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::StencilSize().

static void oglplus::RenderbufferOps::Storage ( Target  target,
PixelDataInternalFormat  internalformat,
GLsizei  width,
GLsizei  height 
)
static
static void oglplus::RenderbufferOps::Storage ( Target  target,
const images::ImageSpec &  image_spec 
)
static

Set the renderbuffer storage parameters.

Related OpenGL symbols:
glRenderbufferStorage
static void oglplus::RenderbufferOps::StorageMultisample ( Target  target,
GLsizei  samples,
PixelDataInternalFormat  internalformat,
GLsizei  width,
GLsizei  height 
)
static

Set the renderbuffer multisample storage parameters.

Related OpenGL symbols:
glRenderbufferStorageMultisample

References oglplus::EnumValueName(), and OGLPLUS_CHECK.

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::StorageMultisample().

static void oglplus::RenderbufferOps::Unbind ( Target  target = Target::Renderbuffer)
static

Bind the name 0 to the target.

Related OpenGL symbols:
glBindRenderbuffer

References OGLPLUS_VERIFY.

static GLsizei oglplus::RenderbufferOps::Width ( Target  target)
static

Returns the width of the renderbuffer as it was specified by Storage*.

See Also
Height
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_WIDTH

Referenced by oglplus::BoundTemplate< Base, BaseParam, RenderbufferOps >::Width().


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

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Wed Apr 30 2014 by Doxygen (version 1.8.4).