OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer > Class Template Reference

Class wrapping renderbuffer functions with explicit target selector. More...

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

Inheritance diagram for oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >:
Collaboration diagram for oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >:

Public Types

typedef RenderbufferTarget Target
 Renderbuffer bind targets.
 

Public Member Functions

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

Static Public Member Functions

static void Storage (Target target, PixelDataInternalFormat internalformat, GLsizei width, GLsizei height)
 Set the renderbuffer storage parameters for the rbo bound to target. More...
 
static void Storage (Target target, const images::ImageSpec &image_spec)
 Set the renderbuffer storage parameters for the rbo bound to target. 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...
 
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...
 

Detailed Description

template<>
class oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >

Class wrapping renderbuffer functions with explicit target selector.

Note
Do not use this class directly, use Renderbuffer instead.

Member Function Documentation

static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static void oglplus::ObjBindingOps< tag::Renderbuffer >::Bind ( Target  target,
RenderbufferName  renderbuffer 
)
staticinherited

Binds the specified renderbuffer to the specified target.

Related OpenGL symbols:
glBindRenderbuffer

References oglplus::GetGLName().

void oglplus::ObjCommonOps< tag::Renderbuffer >::Bind ( Target  target = Target::Renderbuffer) const
inherited

Binds this renderbuffer to the specified target.

Related OpenGL symbols:
glBindRenderbuffer
static RenderbufferName oglplus::ObjBindingOps< tag::Renderbuffer >::Binding ( Target  target)
staticinherited

Returns the current Renderbuffer bound to specified target.

Related OpenGL symbols:
glGetIntegerv
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static PixelDataInternalFormat oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::InternalFormat ( Target  target)
static

Returns the internal format of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_INTERNAL_FORMAT
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::Samples ( Target  target)
static

Returns the number of samples of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_SAMPLES
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::Storage ( Target  target,
PixelDataInternalFormat  internalformat,
GLsizei  width,
GLsizei  height 
)
static

Set the renderbuffer storage parameters for the rbo bound to target.

Related OpenGL symbols:
glRenderbufferStorage
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::Storage ( Target  target,
const images::ImageSpec &  image_spec 
)
static

Set the renderbuffer storage parameters for the rbo bound to target.

Related OpenGL symbols:
glRenderbufferStorage
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::StorageMultisample ( Target  target,
GLsizei  samples,
PixelDataInternalFormat  internalformat,
GLsizei  width,
GLsizei  height 
)
static

Set the renderbuffer multisample storage parameters.

Related OpenGL symbols:
glRenderbufferStorageMultisample
static GLsizei oglplus::ObjectOps< tag::ExplicitSel, tag::Renderbuffer >::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

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 Mon Sep 22 2014 by Doxygen (version 1.8.6).