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();
};
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
static const Framebuffer *current();
static void unbind();
+ void set_debug_name(const std::string &);
+
static Framebuffer &system();
};