From Marco Jez, added missing method implementations to CameraNode and

added check to ensure FBO extension is support to RenderToTextureStage.
This commit is contained in:
Robert Osfield
2005-07-08 14:46:13 +00:00
parent 0d8e38f9ee
commit 99279fbf61
2 changed files with 8 additions and 5 deletions

View File

@@ -193,10 +193,10 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
/** Set the draw buffer for a given fragment output position to specified draw buffer. */
void setDrawBuffer(unsigned int pos, GLenum buffer);
void setDrawBuffer(unsigned int pos, GLenum buffer) { _drawBufferList[pos] = buffer; }
/** Get the draw buffer for a given fragment output position. */
GLenum getDrawBuffer(unsigned int pos);
GLenum getDrawBuffer(unsigned int pos) const { return _drawBufferList[pos]; }
typedef std::vector<GLenum> DrawBufferList;