| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

Renderbuffer.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <glbinding/gl/types.h>
5
6 #include <globjects/globjects_api.h>
7 #include <globjects/Object.h>
8
9
10 namespace globjects
11 {
12
13
18 class GLOBJECTS_API Renderbuffer : public Object
19 {
20 public:
21 Renderbuffer();
22
23 virtual void accept(ObjectVisitor & visitor) override;
24
25 void bind() const;
26 static void unbind();
27
28 void storage(gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height);
29 void storageMultisample(gl::GLsizei samples, gl::GLenum internalformat, gl::GLsizei width, gl::GLsizei height);
30
31 gl::GLint getParameter(gl::GLenum pname) const;
32
33 virtual gl::GLenum objectType() const override;
34
35 protected:
36 virtual ~Renderbuffer();
37
38 void bind(gl::GLenum target) const;
39 static void unbind(gl::GLenum target);
40 };
41
42
43 } // namespace globjects
globjects::Renderbuffer
Encapsulates OpenGL render buffer objects.
Definition: Renderbuffer.h:18
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Object
Superclass of all wrapped OpenGL objects.
Definition: Object.h:26
globjects::ObjectVisitor
Implements a Visitor Pattern to iterate over all tracked globjects objects.
Definition: ObjectVisitor.h:29
Object.h