From Michael Platings, "I've added functions to get the

texture, renderbuffer and other properties from a FrameBufferAttachment."
This commit is contained in:
Robert Osfield
2008-11-06 14:29:35 +00:00
parent 3f9e5dbfaa
commit b5aa966d12
2 changed files with 37 additions and 0 deletions

View File

@@ -350,6 +350,13 @@ namespace osg
void attach(State &state, GLenum target, GLenum attachment_point, const FBOExtensions* ext) const;
int compare(const FrameBufferAttachment &fa) const;
RenderBuffer* getRenderBuffer() const;
Texture* getTexture() const;
int getCubeMapFace() const;
int getTextureLevel() const;
int getTexture3DZOffset() const;
int getTextureArrayLayer() const;
private:
// use the Pimpl idiom to avoid dependency from
// all Texture* headers