]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderbuffer.h
Fix compile errors caused by faulty regex application in previous revision
[libs/gl.git] / source / renderbuffer.h
index a9c25ad75b0596a148b73a4420a565128880c918..b7320929f2f977c98fec344eee7a5ff3ded1bbc8 100644 (file)
@@ -9,7 +9,6 @@ Distributed under the LGPL
 #define MSP_GL_RENDERBUFFER_H_
 
 #include "pixelformat.h"
-#include "types.h"
 
 namespace Msp {
 namespace GL {
@@ -24,17 +23,21 @@ Requires the GL_EXT_framebuffer_object extension.
 class Renderbuffer
 {
 private:
-       uint id;
+       unsigned id;
+       unsigned width;
+       unsigned height;
 
 public:
        Renderbuffer();
        ~Renderbuffer();
 
-       uint get_id() const { return id; }
+       unsigned get_id() const { return id; }
+       unsigned get_width() const { return width; }
+       unsigned get_height() const { return height; }
 
        void bind() const;
 
-       void storage(PixelFormat fmt, sizei width, sizei height);
+       void storage(PixelFormat fmt, unsigned width, unsigned height);
 };
 
 } // namespace GL