Renderbuffer.h
Go to the documentation of this file.
#pragma once
#include <glbinding/gl/types.h>
#include <globjects/globjects_api.h>
#include <globjects/Object.h>
namespace globjects
{
class GLOBJECTS_API Renderbuffer : public Object
{
public:
Renderbuffer();
virtual void accept(ObjectVisitor & visitor) override;
void bind() const;
static void unbind();
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;
protected:
virtual ~Renderbuffer();
void bind(gl::GLenum target) const;
static void unbind(gl::GLenum target);
};
} // namespace globjects
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Object
Superclass of all wrapped OpenGL objects.
Definition: Object.h:26
Object.h
globjects::Renderbuffer
Encapsulates OpenGL render buffer objects.
Definition: Renderbuffer.h:18
globjects::ObjectVisitor
Implements a Visitor Pattern to iterate over all tracked globjects objects.
Definition: ObjectVisitor.h:29