globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
Encapsulates OpenGL render buffer objects. More...
#include <globjects/include/globjects/Renderbuffer.h>
Public Member Functions | |
Renderbuffer () | |
virtual | ~Renderbuffer () |
virtual void | accept (ObjectVisitor &visitor) override |
void | bind () const |
void | storage (gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height) |
void | storageMultisample (gl::GLsizei samples, gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height) |
gl::GLint | getParameter (gl::GLenum pname) const |
virtual gl::GLenum | objectType () const override |
Public Member Functions inherited from globjects::Object | |
gl::GLuint | id () const |
std::string | name () const |
void | setName (const std::string &name) |
bool | hasName () const |
bool | isDefault () const |
void | detach () |
Static Public Member Functions | |
static void | unbind () |
Static Public Member Functions inherited from globjects::Object | |
static void | hintNameImplementation (NameImplementation impl) |
Static Public Member Functions inherited from globjects::Instantiator< Renderbuffer > | |
static std::unique_ptr< Renderbuffer > | create (Args &&...args) |
static std::unique_ptr< Renderbuffer > | fromId (gl::GLuint id, Args &&...args) |
Protected Member Functions | |
void | bind (gl::GLenum target) const |
Protected Member Functions inherited from globjects::Object | |
Object (std::unique_ptr< IDResource > &&resource) | |
virtual | ~Object () |
Static Protected Member Functions | |
static void | unbind (gl::GLenum target) |
Additional Inherited Members | |
Public Types inherited from globjects::Object | |
enum | NameImplementation { NameImplementation::DebugKHR, NameImplementation::Legacy } |
Protected Attributes inherited from globjects::Object | |
std::unique_ptr< IDResource > | m_resource |
void * | m_objectLabelState |
Encapsulates OpenGL render buffer objects.
globjects::Renderbuffer::Renderbuffer | ( | ) |
|
virtual |
|
overridevirtual |
Implements globjects::Object.
void globjects::Renderbuffer::bind | ( | ) | const |
|
static |
void globjects::Renderbuffer::storage | ( | gl::GLenum | internalformat, |
gl::GLsizei | width, | ||
gl::GLsizei | height | ||
) |
void globjects::Renderbuffer::storageMultisample | ( | gl::GLsizei | samples, |
gl::GLenum | internalformat, | ||
gl::GLsizei | width, | ||
gl::GLsizei | height | ||
) |
gl::GLint globjects::Renderbuffer::getParameter | ( | gl::GLenum | pname | ) | const |
|
overridevirtual |
Implements globjects::Object.
|
protected |
|
staticprotected |