OGLplus (0.52.0) a C++ wrapper for OpenGL

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

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

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

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

Classes

struct  Property
 Types related to Framebuffer. More...
 

Public Types

typedef FramebufferTarget Target
 Framebuffer bind targets.
 

Public Member Functions

void Bind (Target target) const
 Binds this framebuffer to the specified target. More...
 

Static Public Member Functions

static FramebufferStatus Status (Target target)
 Checks the status of the framebuffer. More...
 
static bool IsComplete (Target target)
 Returns true if the framebuffer is complete. More...
 
static void Complete (Target target)
 Throws an exception if the framebuffer is not complete.
 
static void AttachRenderbuffer (Target target, Property::Attachment attachment, RenderbufferName renderbuffer)
 Attach a renderbuffer to the attachment point of target. More...
 
static void AttachColorRenderbuffer (Target target, FramebufferColorAttachmentNumber attachment_no, RenderbufferName renderbuffer)
 Attach a renderbuffer to the color attachment_no of target. More...
 
static void AttachTexture (Target target, Property::Attachment attachment, TextureName texture, GLint level)
 Attach a texture to the attachment point of target. More...
 
static void AttachColorTexture (Target target, FramebufferColorAttachmentNumber attachment_no, TextureName texture, GLint level)
 Attach a texture to the color attachment point of target. More...
 
static void AttachTexture1D (Target target, Property::Attachment attachment, TextureTarget textarget, TextureName texture, GLint level)
 Attach a 1D texture to the attachment point of target. More...
 
static void AttachTexture2D (Target target, Property::Attachment attachment, TextureTarget textarget, TextureName texture, GLint level)
 Attach a 2D texture to the attachment point of target. More...
 
static void AttachTexture3D (Target target, Property::Attachment attachment, TextureTarget textarget, TextureName texture, GLint level, GLint layer)
 Attach a 3D texture to the attachment point of target. More...
 
static void AttachTextureLayer (Target target, Property::Attachment attachment, TextureName texture, GLint level, GLint layer)
 Attach a texture layer to the attachment point of target. More...
 
static void Invalidate (Target target, const EnumArray< Property::Buffer > &buffers)
 Invalidates the specified attachments or buffers of the Framebuffer. More...
 
static void Invalidate (Target target, GLsizei count, const Property::Buffer *buffers)
 Invalidates the specified attachments or buffers of the Framebuffer. More...
 
static void Invalidate (Target target, const EnumArray< Property::Buffer > &buffers, GLint x, GLint y, GLsizei width, GLsizei height)
 Invalidates parts of attachments or buffers of the Framebuffer. More...
 
static void Invalidate (Target target, GLsizei count, const Property::Buffer *buffers, GLint x, GLint y, GLsizei width, GLsizei height)
 Invalidates parts of attachments or buffers of the Framebuffer. More...
 
static void Bind (Target target, FramebufferName framebuffer)
 Binds the specified framebuffer to the specified target. More...
 
static FramebufferName Binding (Target target)
 Returns the current Framebuffer bound to specified target. More...
 

Detailed Description

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

Class wrapping framebuffer functions with explicit target selector.

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

Member Function Documentation

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachColorRenderbuffer ( Target  target,
FramebufferColorAttachmentNumber  attachment_no,
RenderbufferName  renderbuffer 
)
static

Attach a renderbuffer to the color attachment_no of target.

See Also
AttachRenderbuffer
AttachTexture
AttachTextureLayer
AttachTexture1D
AttachTexture2D
AttachTexture3D
AttachColorTexture
Related OpenGL symbols:
glFramebufferRenderbuffer

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachColorTexture ( Target  target,
FramebufferColorAttachmentNumber  attachment_no,
TextureName  texture,
GLint  level 
)
static

Attach a texture to the color attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTexture1D
AttachTexture2D
AttachTexture3D
AttachTexture
AttachTextureLayer
Related OpenGL symbols:
glFramebufferTexture

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachRenderbuffer ( Target  target,
Property::Attachment  attachment,
RenderbufferName  renderbuffer 
)
static

Attach a renderbuffer to the attachment point of target.

See Also
AttachColorRenderbuffer
AttachTexture
AttachTextureLayer
AttachTexture1D
AttachTexture2D
AttachTexture3D
AttachColorTexture
Related OpenGL symbols:
glFramebufferRenderbuffer

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachTexture ( Target  target,
Property::Attachment  attachment,
TextureName  texture,
GLint  level 
)
static

Attach a texture to the attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTextureLayer
AttachTexture1D
AttachTexture2D
AttachTexture3D
AttachColorTexture

Requires OpenGL 3.2.

Related OpenGL symbols:
glFramebufferTexture

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachTexture1D ( Target  target,
Property::Attachment  attachment,
TextureTarget  textarget,
TextureName  texture,
GLint  level 
)
static

Attach a 1D texture to the attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTexture2D
AttachTexture3D
AttachColorTexture
AttachTexture
AttachTextureLayer
Related OpenGL symbols:
glFramebufferTexture1D

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachTexture2D ( Target  target,
Property::Attachment  attachment,
TextureTarget  textarget,
TextureName  texture,
GLint  level 
)
static

Attach a 2D texture to the attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTexture1D
AttachTexture3D
AttachColorTexture
AttachTexture
AttachTextureLayer
Related OpenGL symbols:
glFramebufferTexture2D

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachTexture3D ( Target  target,
Property::Attachment  attachment,
TextureTarget  textarget,
TextureName  texture,
GLint  level,
GLint  layer 
)
static

Attach a 3D texture to the attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTexture1D
AttachTexture2D
AttachColorTexture
AttachTexture
AttachTextureLayer
Related OpenGL symbols:
glFramebufferTexture3D

References oglplus::GetGLName().

static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::AttachTextureLayer ( Target  target,
Property::Attachment  attachment,
TextureName  texture,
GLint  level,
GLint  layer 
)
static

Attach a texture layer to the attachment point of target.

See Also
AttachRenderbuffer
AttachColorRenderbuffer
AttachTexture1D
AttachTexture2D
AttachTexture3D
AttachColorTexture
AttachTexture
Related OpenGL symbols:
glFramebufferTextureLayer

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Framebuffer >::Bind ( Target  target,
FramebufferName  framebuffer 
)
staticinherited

Binds the specified framebuffer to the specified target.

Related OpenGL symbols:
glBindFramebuffer

References oglplus::GetGLName().

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

Binds this framebuffer to the specified target.

Related OpenGL symbols:
glBindFramebuffer
static FramebufferName oglplus::ObjBindingOps< tag::Framebuffer >::Binding ( Target  target)
staticinherited

Returns the current Framebuffer bound to specified target.

Related OpenGL symbols:
glGetIntegerv
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::Invalidate ( Target  target,
const EnumArray< Property::Buffer > &  buffers 
)
static

Invalidates the specified attachments or buffers of the Framebuffer.

Requires OpenGL 4.3 or the GL_ARB_invalidate_subdata extension.

Related OpenGL symbols:
glInvalidateFramebuffer
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::Invalidate ( Target  target,
GLsizei  count,
const Property::Buffer buffers 
)
static

Invalidates the specified attachments or buffers of the Framebuffer.

Requires OpenGL 4.3 or the GL_ARB_invalidate_subdata extension.

Related OpenGL symbols:
glInvalidateFramebuffer
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::Invalidate ( Target  target,
const EnumArray< Property::Buffer > &  buffers,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
static

Invalidates parts of attachments or buffers of the Framebuffer.

Requires OpenGL 4.3 or the GL_ARB_invalidate_subdata extension.

Related OpenGL symbols:
glInvalidateSubFramebuffer
static void oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::Invalidate ( Target  target,
GLsizei  count,
const Property::Buffer buffers,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
static

Invalidates parts of attachments or buffers of the Framebuffer.

Requires OpenGL 4.3 or the GL_ARB_invalidate_subdata extension.

Related OpenGL symbols:
glInvalidateSubFramebuffer
static bool oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::IsComplete ( Target  target)
static

Returns true if the framebuffer is complete.

See Also
FramebufferStatus
Status()
Related OpenGL symbols:
glCheckFramebufferStatus

References oglplus::Complete.

static FramebufferStatus oglplus::ObjectOps< tag::ExplicitSel, tag::Framebuffer >::Status ( Target  target)
static

Checks the status of the framebuffer.

Returns one of the values in the FramebufferStatus enumeration. For complete framebuffers this member function returns Status::Complete.

See Also
IsComplete
Related OpenGL symbols:
glCheckFramebufferStatus

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