From Aurelien Albert, "Here is the code to get access to OpenGL handle of an osg::FrameBufferObject"

This commit is contained in:
Robert Osfield 2013-07-31 07:11:07 +00:00
parent 9878a83894
commit 9c9939e5d4

View File

@ -418,6 +418,11 @@ namespace osg
void apply(State &state) const; void apply(State &state) const;
inline GLuint getHandle(unsigned int contextID) const
{
return _fboID[contextID];
}
enum BindTarget enum BindTarget
{ {
READ_FRAMEBUFFER = GL_READ_FRAMEBUFFER_EXT, READ_FRAMEBUFFER = GL_READ_FRAMEBUFFER_EXT,