/* $Id$
This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007, 2009-2011 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
Renderbuffer *rbuf;
Texture *tex;
};
- int level;
+ unsigned level;
Attachment(FramebufferAttachment);
void set(Renderbuffer &);
- void set(Texture &, int);
+ void set(Texture &, unsigned);
void clear();
};
void check_size();
public:
void attach(FramebufferAttachment attch, Renderbuffer &rbuf);
- void attach(FramebufferAttachment attch, Texture2D &tex, int level);
+ void attach(FramebufferAttachment attch, Texture2D &tex, unsigned level = 0);
void detach(FramebufferAttachment attch);
/**
FramebufferStatus check_status() const;
void clear(BufferBits);
+ void blit_from(const Framebuffer &, int, int, int, int, int, int, int, int, BufferBits, bool);
+ void blit_from(const Framebuffer &, int, int, unsigned, unsigned, int, int, BufferBits);
+ void blit_from(const Framebuffer &, BufferBits, bool);
void bind() const;
static Framebuffer &system();
private:
unsigned get_attachment_index(FramebufferAttachment);
-
-public:
-
};
inline BufferBits operator|(BufferBits a, BufferBits b)