- void attach(FramebufferAttachment attch, Renderbuffer &rbuf);
- 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);
+
+ /** Attaches a texture to the framebuffer. Only the attachment point
+ portion of attch is considered; pixel format is ignored. The framebuffer
+ must have a format and the format of the texture must match that defined
+ in the framebuffer for this attachment point. */
+ void attach(FrameAttachment attch, Texture2D &tex, unsigned level = 0);
+
+ void attach(FrameAttachment attch, Texture2DMultisample &tex);
+ void attach(FrameAttachment attch, Texture3D &tex, unsigned layer, unsigned level = 0);
+ void attach(FrameAttachment attch, TextureCube &tex, TextureCubeFace face, unsigned level = 0);
+ void attach_layered(FrameAttachment attch, Texture3D &tex, unsigned level = 0);
+ void attach_layered(FrameAttachment attch, TextureCube &tex, unsigned level = 0);
+ void detach(FrameAttachment attch);