OGLplus (0.52.0) a C++ wrapper for OpenGL

renderbuffer.hpp
Go to the documentation of this file.
1 
14 #ifndef OGLPLUS_BOUND_RENDERBUFFER_1107121519_HPP
15 #define OGLPLUS_BOUND_RENDERBUFFER_1107121519_HPP
16 
17 #include <oglplus/object/bound.hpp>
18 #include <oglplus/renderbuffer.hpp>
19 #include <utility>
20 
21 namespace oglplus {
22 
24 
35 template <>
36 class BoundObjOps<tag::Renderbuffer>
37 {
38 private:
40 public:
42  Target target;
43 
44  BoundObjOps(void)
45  { }
46 
47  BoundObjOps(Target init_tgt)
48  : target(init_tgt)
49  { }
50 
54  GLint GetIntParam(
55  GLenum query
56  ) const
57  {
58  return ExplicitOps::GetIntParam(
59  this->target,
60  query
61  );
62  }
63 
64 
68  const BoundObjOps& Storage(
69  PixelDataInternalFormat internalformat,
70  GLsizei width,
71  GLsizei height
72  ) const
73  {
74  ExplicitOps::Storage(
75  this->target,
76  internalformat,
77  width,
78  height
79  );
80  return *this;
81  }
82 
83 
87  const BoundObjOps& Storage(
88  const images::ImageSpec & image_spec
89  ) const
90  {
91  ExplicitOps::Storage(
92  this->target,
93  image_spec
94  );
95  return *this;
96  }
97 
98 
102  const BoundObjOps& StorageMultisample(
103  GLsizei samples,
104  PixelDataInternalFormat internalformat,
105  GLsizei width,
106  GLsizei height
107  ) const
108  {
109  ExplicitOps::StorageMultisample(
110  this->target,
111  samples,
112  internalformat,
113  width,
114  height
115  );
116  return *this;
117  }
118 
119 
123  GLsizei Width(void) const
124  {
125  return ExplicitOps::Width(
126  this->target
127  );
128  }
129 
130 
134  GLsizei Height(void) const
135  {
136  return ExplicitOps::Height(
137  this->target
138  );
139  }
140 
141 
145  GLsizei RedSize(void) const
146  {
147  return ExplicitOps::RedSize(
148  this->target
149  );
150  }
151 
152 
156  GLsizei GreenSize(void) const
157  {
158  return ExplicitOps::GreenSize(
159  this->target
160  );
161  }
162 
163 
167  GLsizei BlueSize(void) const
168  {
169  return ExplicitOps::BlueSize(
170  this->target
171  );
172  }
173 
174 
178  GLsizei AlphaSize(void) const
179  {
180  return ExplicitOps::AlphaSize(
181  this->target
182  );
183  }
184 
185 
189  GLsizei DepthSize(void) const
190  {
191  return ExplicitOps::DepthSize(
192  this->target
193  );
194  }
195 
196 
200  GLsizei StencilSize(void) const
201  {
202  return ExplicitOps::StencilSize(
203  this->target
204  );
205  }
206 
207 
211  GLsizei Samples(void) const
212  {
213  return ExplicitOps::Samples(
214  this->target
215  );
216  }
217 
218 
223  {
225  this->target
226  );
227  }
228 
229 
230 }; // class BoundObjOps
231 
232 } // namespace oglplus
233 
234 #endif // include guard
GLsizei Height(void) const
Definition: renderbuffer.hpp:134
GLint GetIntParam(GLenum query) const
Definition: renderbuffer.hpp:54
GLsizei GreenSize(void) const
Definition: renderbuffer.hpp:156
GLsizei StencilSize(void) const
Definition: renderbuffer.hpp:200
PixelDataInternalFormat
OpenGL pixel data internal format enumeration.
Definition: pixel_data.hpp:79
RenderbufferTarget
Renderbuffer bind target.
Definition: renderbuffer_target.hpp:24
const BoundObjOps & StorageMultisample(GLsizei samples, PixelDataInternalFormat internalformat, GLsizei width, GLsizei height) const
Definition: renderbuffer.hpp:102
PixelDataInternalFormat InternalFormat(void) const
Definition: renderbuffer.hpp:222
GLsizei Width(void) const
Definition: renderbuffer.hpp:123
GLsizei DepthSize(void) const
Definition: renderbuffer.hpp:189
PixelDataInternalFormat InternalFormat
Alias for PixelDataInternalFormat.
Definition: pixel_data.hpp:95
GLsizei Samples(void) const
Definition: renderbuffer.hpp:211
const BoundObjOps & Storage(const images::ImageSpec &image_spec) const
Definition: renderbuffer.hpp:87
GLsizei BlueSize(void) const
Definition: renderbuffer.hpp:167
Operations on currently bound objects.
GLsizei RedSize(void) const
Definition: renderbuffer.hpp:145
GLsizei AlphaSize(void) const
Definition: renderbuffer.hpp:178
Renderbuffer object wrappers.
Class wrapping renderbuffer functions with explicit target selector.
Definition: renderbuffer.hpp:143
const BoundObjOps & Storage(PixelDataInternalFormat internalformat, GLsizei width, GLsizei height) const
Definition: renderbuffer.hpp:68
Object< RenderbufferOps > Renderbuffer
An oglplus_object encapsulating the renderbuffer object functionality.
Definition: renderbuffer.hpp:401

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).