![]() |
Cinder
0.9.1
|
#include <Fbo.h>
Public Member Functions | |
~Renderbuffer () | |
int | getWidth () const |
int | getHeight () const |
ivec2 | getSize () const |
Area | getBounds () const |
float | getAspectRatio () const |
GLuint | getId () const |
GLenum | getInternalFormat () const |
int | getSamples () const |
int | getCoverageSamples () const |
const std::string & | getLabel () const |
void | setLabel (const std::string &label) |
Static Public Member Functions | |
static RenderbufferRef | create (int width, int height, GLenum internalFormat=GL_RGBA8, int msaaSamples=0, int coverageSamples=0) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Renderbuffer &rhs) |
Represents an OpenGL Renderbuffer, used primarily in conjunction with FBOs. Supported on OpenGL ES but multisampling is currently ignored. Implicitly shared object.
cinder::gl::Renderbuffer::~Renderbuffer | ( | ) |
|
static |
Create a Renderbuffer width pixels wide and heigh pixels high, with an internal format of internalFormat, defaulting to GL_RGBA8, MSAA samples msaaSamples, and CSAA samples coverageSamples.
int cinder::gl::Renderbuffer::getWidth | ( | ) | const |
Returns the width of the Renderbuffer in pixels.
int cinder::gl::Renderbuffer::getHeight | ( | ) | const |
Returns the height of the Renderbuffer in pixels.
ivec2 cinder::gl::Renderbuffer::getSize | ( | ) | const |
Returns the size of the Renderbuffer in pixels.
Area cinder::gl::Renderbuffer::getBounds | ( | ) | const |
Returns the bounding area of the Renderbuffer in pixels.
float cinder::gl::Renderbuffer::getAspectRatio | ( | ) | const |
Returns the aspect ratio of the Renderbuffer.
GLuint cinder::gl::Renderbuffer::getId | ( | ) | const |
Returns the ID of the Renderbuffer.
GLenum cinder::gl::Renderbuffer::getInternalFormat | ( | ) | const |
Returns the internal format of the Renderbuffer.
int cinder::gl::Renderbuffer::getSamples | ( | ) | const |
Returns the number of samples used in MSAA-style antialiasing. Defaults to none, disabling multisampling.
int cinder::gl::Renderbuffer::getCoverageSamples | ( | ) | const |
Returns the number of coverage samples used in CSAA-style antialiasing. Defaults to none.
const std::string& cinder::gl::Renderbuffer::getLabel | ( | ) | const |
Returns the debugging label associated with the Renderbuffer.
void cinder::gl::Renderbuffer::setLabel | ( | const std::string & | label | ) |
Sets the debugging label associated with the Renderbuffer. Calls glObjectLabel() when available.
|
friend |