Futher work on FBO support

This commit is contained in:
Robert Osfield
2005-06-15 20:06:10 +00:00
parent bc76fbf60d
commit 77a4cef9d6
3 changed files with 102 additions and 28 deletions

View File

@@ -124,9 +124,10 @@ void CameraNode::attach(BufferComponent buffer, GLenum internalFormat)
_bufferAttachmentMap[buffer]._internalFormat = internalFormat;
}
void CameraNode::attach(BufferComponent buffer, osg::Texture* texture, unsigned int face)
void CameraNode::attach(BufferComponent buffer, osg::Texture* texture, unsigned int level, unsigned int face)
{
_bufferAttachmentMap[buffer]._texture = texture;
_bufferAttachmentMap[buffer]._level = level;
_bufferAttachmentMap[buffer]._face = face;
}