35 #ifndef IECOREGL_FRAMEBUFFER_H
36 #define IECOREGL_FRAMEBUFFER_H
40 #include "IECore/RunTimeTyped.h"
42 #include "IECoreGL/Export.h"
44 #include "IECoreGL/TypeIds.h"
49 IE_CORE_FORWARDDECLARE( Texture );
50 IE_CORE_FORWARDDECLARE( DepthTexture );
71 GLuint frameBuffer()
const;
75 static unsigned int maxColors();
78 void setColor( TexturePtr texture,
unsigned int index = 0 );
81 TexturePtr getColor(
unsigned int index = 0 );
84 ConstTexturePtr getColor(
unsigned int index = 0 )
const;
86 void setDepth( DepthTexturePtr depthTexture );
89 DepthTexturePtr getDepth();
92 ConstDepthTexturePtr getDepth()
const;
96 void validate()
const;
114 GLint m_prevDrawBuffer;
115 GLint m_prevReadBuffer;
121 GLuint m_frameBuffer;
122 std::vector<TexturePtr> m_colorAttachments;
123 DepthTexturePtr m_depthAttachment;
131 #endif // IECOREGL_FRAMEBUFFER_H
Definition: FrameBuffer.h:101
The namespace within which all CoreGL functionality is defined.
Definition: AlphaTexture.h:41
Definition: FrameBuffer.h:55
Definition: RunTimeTyped.h:211