Added const version of getReadPBuffer()

This commit is contained in:
Robert Osfield 2006-08-25 14:54:54 +00:00
parent f5d9443b78
commit ff61a20315

View File

@ -442,6 +442,9 @@ class OSG_EXPORT Texture : public osg::StateAttribute
/** Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture.*/
GraphicsContext* getReadPBuffer() { return _readPBuffer.get(); }
/** Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture.*/
const GraphicsContext* getReadPBuffer() const { return _readPBuffer.get(); }
/** Texture is a pure virtual base class, apply must be overriden. */
virtual void apply(State& state) const = 0;