moGL
travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
|
#include <framebuffer.hpp>
Public Member Functions | |
FrameBuffer () | |
~FrameBuffer () | |
FrameBuffer (const FrameBuffer &other) | |
FrameBuffer & | operator= (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) |
mogl::FrameBuffer::FrameBuffer | ( | ) | [inline] |
mogl::FrameBuffer::~FrameBuffer | ( | ) | [inline] |
mogl::FrameBuffer::FrameBuffer | ( | const FrameBuffer & | other | ) |
mogl::FrameBuffer::FrameBuffer | ( | FrameBuffer && | other | ) |
void mogl::FrameBuffer::bind | ( | GLenum | target | ) | [inline] |
void mogl::FrameBuffer::clear | ( | GLenum | buffer, |
GLint | drawbuffer, | ||
const T * | value | ||
) |
void mogl::FrameBuffer::clear | ( | GLenum | buffer, |
GLfloat | depth, | ||
GLint | stencil | ||
) | [inline] |
void mogl::FrameBuffer::clear | ( | GLenum | buffer, |
GLint | drawbuffer, | ||
const GLint * | value | ||
) | [inline] |
void mogl::FrameBuffer::clear | ( | GLenum | buffer, |
GLint | drawbuffer, | ||
const GLuint * | value | ||
) | [inline] |
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] |
Implements mogl::Handle< GLuint >.
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] |