Loading...
Searching...
No Matches
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
Object.h
globjects::Object
Superclass of all wrapped OpenGL objects.
Definition Object.h:27
globjects::ObjectVisitor
Implements a Visitor Pattern to iterate over all tracked globjects objects.
Definition ObjectVisitor.h:30
globjects::Renderbuffer
Encapsulates OpenGL render buffer objects.
Definition Renderbuffer.h:19
globjects::Renderbuffer::Renderbuffer
Renderbuffer()
globjects::Renderbuffer::getParameter
gl::GLint getParameter(gl::GLenum pname) const
globjects::Renderbuffer::~Renderbuffer
virtual ~Renderbuffer()
globjects::Renderbuffer::unbind
static void unbind()
globjects::Renderbuffer::bind
void bind(gl::GLenum target) const
globjects::Renderbuffer::objectType
virtual gl::GLenum objectType() const override
globjects::Renderbuffer::storage
void storage(gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height)
globjects::Renderbuffer::bind
void bind() const
globjects::Renderbuffer::storageMultisample
void storageMultisample(gl::GLsizei samples, gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height)
globjects::Renderbuffer::accept
virtual void accept(ObjectVisitor &visitor) override
globjects::Renderbuffer::unbind
static void unbind(gl::GLenum target)
globjects
Contains all the classes that wrap OpenGL functionality.