moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
 All Classes Namespaces Files Functions Variables Defines
Public Member Functions
mogl::FrameBuffer Class Reference

#include <framebuffer.hpp>

Inheritance diagram for mogl::FrameBuffer:
Inheritance graph
[legend]
Collaboration diagram for mogl::FrameBuffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FrameBuffer ()
 ~FrameBuffer ()
 FrameBuffer (const FrameBuffer &other)
FrameBufferoperator= (const FrameBuffer &other)
 FrameBuffer (FrameBuffer &&other)
void bind (GLenum target)
void setRenderBuffer (GLenum attachment, RenderBuffer &renderbuffer)
void setTexture (GLenum attachment, Texture &texture, GLint level=0)
void setDrawBuffer (GLenum buffer)
void setDrawBuffers (GLsizei size, const GLenum *buffers)
void invalidate (GLsizei numAttachments, const GLenum *attachments)
void invalidateSubData (GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height)
void set (GLenum property, GLint value)
bool isComplete (GLenum target)
bool isHandleValid () const override final
template<class T >
void clear (GLenum buffer, GLint drawbuffer, const T *value)
void clear (GLenum buffer, GLfloat depth, GLint stencil)
template<>
void clear (GLenum buffer, GLint drawbuffer, const GLint *value)
template<>
void clear (GLenum buffer, GLint drawbuffer, const GLuint *value)
template<>
void clear (GLenum buffer, GLint drawbuffer, const GLfloat *value)

Constructor & Destructor Documentation


Member Function Documentation

void mogl::FrameBuffer::bind ( GLenum  target) [inline]
template<class T >
void mogl::FrameBuffer::clear ( GLenum  buffer,
GLint  drawbuffer,
const T *  value 
)
void mogl::FrameBuffer::clear ( GLenum  buffer,
GLfloat  depth,
GLint  stencil 
) [inline]
template<>
void mogl::FrameBuffer::clear ( GLenum  buffer,
GLint  drawbuffer,
const GLint *  value 
) [inline]
template<>
void mogl::FrameBuffer::clear ( GLenum  buffer,
GLint  drawbuffer,
const GLuint *  value 
) [inline]
template<>
void mogl::FrameBuffer::clear ( GLenum  buffer,
GLint  drawbuffer,
const GLfloat *  value 
) [inline]
void mogl::FrameBuffer::invalidate ( GLsizei  numAttachments,
const GLenum *  attachments 
) [inline]
void mogl::FrameBuffer::invalidateSubData ( GLsizei  numAttachments,
const GLenum *  attachments,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
) [inline]
bool mogl::FrameBuffer::isComplete ( GLenum  target) [inline]
bool mogl::FrameBuffer::isHandleValid ( ) const [inline, override, virtual]
FrameBuffer& mogl::FrameBuffer::operator= ( const FrameBuffer other)
void mogl::FrameBuffer::set ( GLenum  property,
GLint  value 
) [inline]
void mogl::FrameBuffer::setDrawBuffer ( GLenum  buffer) [inline]
void mogl::FrameBuffer::setDrawBuffers ( GLsizei  size,
const GLenum *  buffers 
) [inline]
void mogl::FrameBuffer::setRenderBuffer ( GLenum  attachment,
RenderBuffer renderbuffer 
) [inline]
void mogl::FrameBuffer::setTexture ( GLenum  attachment,
Texture texture,
GLint  level = 0 
) [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines