X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.h;h=e33deda9218d9bf3afea690b44fc1e9dd6329bc1;hb=2be605933f62521bb22780256386a14b371c8b17;hp=70d32d7f1ab5e704a1e8685ddcba46970548f9e1;hpb=6c2cb15dca6c24642f5026b06e6168c0d820355f;p=libs%2Fgl.git diff --git a/source/framebuffer.h b/source/framebuffer.h index 70d32d7f..e33deda9 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -1,16 +1,10 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007, 2009-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_FRAMEBUFFER_H_ #define MSP_GL_FRAMEBUFFER_H_ #include #include "bindable.h" #include "gl.h" +#include "texturecube.h" namespace Msp { namespace GL { @@ -87,10 +81,11 @@ private: Texture *tex; }; unsigned level; + GLenum cube_face; Attachment(FramebufferAttachment); void set(Renderbuffer &); - void set(Texture &, unsigned); + void set(Texture &, GLenum, unsigned); void clear(); }; @@ -114,6 +109,7 @@ private: public: void attach(FramebufferAttachment attch, Renderbuffer &rbuf); void attach(FramebufferAttachment attch, Texture2D &tex, unsigned level = 0); + void attach(FramebufferAttachment attch, TextureCube &tex, TextureCubeFace face, unsigned level = 0); void detach(FramebufferAttachment attch); /**