]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Add debug name capability to more classes
[libs/gl.git] / source / core / framebuffer.h
index 3086685e1ce29234e8f1e8629bb7ffd103f7050f..ca97ed17e45d021f9b9b779aa7579754640949ef 100644 (file)
@@ -82,11 +82,11 @@ private:
                        Texture *tex;
                };
                unsigned level;
-               unsigned layer;
+               int layer;
 
                Attachment(FramebufferAttachment);
                void set(Renderbuffer &);
-               void set(Texture &, unsigned, unsigned);
+               void set(Texture &, unsigned, int);
                void clear();
        };
 
@@ -125,6 +125,8 @@ public:
        void attach(FramebufferAttachment attch, Texture2D &tex, unsigned level = 0);
        void attach(FramebufferAttachment attch, Texture3D &tex, unsigned layer, unsigned level = 0);
        void attach(FramebufferAttachment attch, TextureCube &tex, TextureCubeFace face, unsigned level = 0);
+       void attach_layered(FramebufferAttachment attch, Texture3D &tex, unsigned level = 0);
+       void attach_layered(FramebufferAttachment attch, TextureCube &tex, unsigned level = 0);
        void detach(FramebufferAttachment attch);
 
        /** Checks the completeness of the framebuffer.  Returns
@@ -162,6 +164,8 @@ public:
        static const Framebuffer *current();
        static void unbind();
 
+       void set_debug_name(const std::string &);
+
        static Framebuffer &system();
 };