SoPBuffer Class |
Note: This API is now obsolete.
Creates an OpenGL Pbuffer.
Namespace: OIV.Inventor
The SoPBuffer type exposes the following members.
Name | Description | |
---|---|---|
![]() | BindToTexture | Calls BindToTexture(false, -1). (Inherited from SoGLRenderToBuffer.) |
![]() | BindToTexture(Boolean) | Calls BindToTexture(bindDepth, -1). (Inherited from SoGLRenderToBuffer.) |
![]() | BindToTexture(Boolean, Int32) | Binds the render buffer to a texture object. |
![]() | Create(SbVec2i32) | Creates a Pbuffer with the specified size. |
![]() | Create(SbVec2s) | Creates a Pbuffer with the specified size. |
![]() | Disable | Disable render to buffer Returns true if successful. |
![]() | Equals | (Inherited from Object.) |
![]() | GetContext | Gets OpenGL render context Only valid if a Pbuffer has been successfully created. |
![]() | GetGraphicConfigTemplate | Gets the current graphics configuration template. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetPixelFormat | Returns the current pixel format. |
![]() | GetSize | Gets current size as an SbVec2s. |
![]() | GetSize_i32 | Gets current size as an SbVec2i32. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsPBuffer | Return true if the render buffer is a pbuffer. |
![]() | MakeCurrent | Enable render to buffer for OpenGL rendering. |
![]() | ReleaseTexImage | Calls ReleaseTexImage(false). (Inherited from SoGLRenderToBuffer.) |
![]() | ReleaseTexImage(Boolean) | Releases the Pbuffer from the current texture object. |
![]() | Resize(SbVec2i32) | Resizes Pbuffer. |
![]() | Resize(SbVec2s) | Resizes Pbuffer. |
![]() | SelectCubeMapFace | Selects the face to be used when the rendering target is a cube map. |
![]() | SetContextForSharing | ++ This has effect only when using PBuffer. |
![]() | SetGraphicConfigTemplate | Sets a new graphics configuration template. |
![]() | SetPixelFormat | Sets the current pixel format. |
![]() | SetRenderToTexture(Boolean) | Calls SetRenderToTexture(enable, OIV.Inventor.SoGLRenderToBuffer.TextureFormats( .SoGLRenderToBuffer.TEXTURE_RGB ), OIV.Inventor.SoGLRenderToBuffer.TextureTargets( .SoGLRenderToBuffer.TEXTURE_2D ), false, false). |
![]() | SetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats) | Calls SetRenderToTexture(enable, format, OIV.Inventor.SoGLRenderToBuffer.TextureTargets( .SoGLRenderToBuffer.TEXTURE_2D ), false, false). |
![]() | SetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets) | Calls SetRenderToTexture(enable, format, target, false, false). |
![]() | SetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean) | Calls SetRenderToTexture(enable, format, target, autoMipmap, false). |
![]() | SetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean, Boolean) | Specifies settings for the Pbuffer creation. |
![]() | ShareCurrentContext | Share OpenGL object with the current context. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class creates an OpenGL Pbuffer object which may be used for accelerated off-screen rendering. Unlike a pixmap or offscreen bitmap, a Pbuffer is allocated in frame buffer memory and can be rendered to directly by the graphics hardware.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later. Use SoRenderToTarget.
For most applications, using the SoOffscreenRenderer class will be more convenient. SoOffscreenRenderer uses Pbuffers automatically.
Pbuffers are only available if the graphics hardware supports OpenGL 1.2 or the OpenGL Pbuffer extension. On UNIX this extension is named "GLX_pbuffer" or "GLX_SGIX_pbuffer". On Windows this extension is named "WGL_ARB_pbuffer" or "WGL_EXT_pbuffer".