OGLplus (0.52.0) a C++ wrapper for OpenGL

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

Class wrapping renderbuffer-related functionality with direct state access. More...

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

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

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...
 

Detailed Description

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

Class wrapping renderbuffer-related functionality with direct state access.

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

Member Function Documentation

GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::AlphaSize ( void  ) const

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
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::BlueSize ( void  ) const

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
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::DepthSize ( void  ) const

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
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::GreenSize ( void  ) const

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
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Height ( void  ) const

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

See Also
Width
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_HEIGHT

Returns the internal format of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter 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.

See Also
Green
Blue
Alpha
Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_RED_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Samples ( void  ) const

Returns the number of samples of the renderbuffer.

Related OpenGL symbols:
glGetRenderbufferParameter GL_RENDERBUFFER_SAMPLES
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::StencilSize ( void  ) const

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
void oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Storage ( PixelDataInternalFormat  internalformat,
GLsizei  width,
GLsizei  height 
)

Set the renderbuffer storage parameters.

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

Set the renderbuffer storage parameters.

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

Set the renderbuffer multisample storage parameters.

Related OpenGL symbols:
glRenderbufferStorageMultisample
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Renderbuffer >::Width ( void  ) const

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).