X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fframebuffer.h;h=5a9993dae202421f1c6434ebe5bb4bd006c5569f;hp=2e29dbc3f440c7f1b9f1646e7dd611d39e977dc4;hb=e19309340e90ee881e9cb2f8b7c33a5b89681aa6;hpb=f1b12c992db974c679d85ae6ec22cd318199d0d5 diff --git a/source/framebuffer.h b/source/framebuffer.h index 2e29dbc3..5a9993da 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -6,6 +6,8 @@ #include "gl.h" #include "texturecube.h" #include +#include +#include namespace Msp { namespace GL { @@ -13,6 +15,7 @@ namespace GL { class Renderbuffer; class Texture; class Texture2D; +class Texture3D; enum FramebufferAttachment { @@ -89,11 +92,11 @@ private: Texture *tex; }; unsigned level; - GLenum cube_face; + unsigned layer; Attachment(FramebufferAttachment); void set(Renderbuffer &); - void set(Texture &, GLenum, unsigned); + void set(Texture &, unsigned, unsigned); void clear(); }; @@ -129,6 +132,7 @@ private: public: 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 detach(FramebufferAttachment attch);