Click or drag to resize
SoPBuffer Class

Note: This API is now obsolete.

Creates an OpenGL Pbuffer.

Inheritance Hierarchy

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("See documentation for more details")]
public class SoPBuffer : SoGLRenderToBuffer

The SoPBuffer type exposes the following members.

Methods
  NameDescription
Public methodBindToTexture
Calls BindToTexture(false, -1).
(Inherited from SoGLRenderToBuffer.)
Public methodBindToTexture(Boolean)
Calls BindToTexture(bindDepth, -1).
(Inherited from SoGLRenderToBuffer.)
Public methodBindToTexture(Boolean, Int32)

Binds the render buffer to a texture object.

(Inherited from SoGLRenderToBuffer.)
Public methodCreate(SbVec2i32)

Creates a Pbuffer with the specified size.

(Inherited from SoGLRenderToBuffer.)
Public methodCreate(SbVec2s)

Creates a Pbuffer with the specified size.

(Inherited from SoGLRenderToBuffer.)
Public methodDisable

Disable render to buffer Returns true if successful.

(Inherited from SoGLRenderToBuffer.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetContext

Gets OpenGL render context Only valid if a Pbuffer has been successfully created.

Public methodGetGraphicConfigTemplate

Gets the current graphics configuration template.

(Inherited from SoGLRenderToBuffer.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetPixelFormat

Returns the current pixel format.

(Inherited from SoGLRenderToBuffer.)
Public methodGetSize

Gets current size as an SbVec2s.

(Inherited from SoGLRenderToBuffer.)
Public methodGetSize_i32

Gets current size as an SbVec2i32.

(Inherited from SoGLRenderToBuffer.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsPBuffer

Return true if the render buffer is a pbuffer.

(Inherited from SoGLRenderToBuffer.)
Public methodMakeCurrent

Enable render to buffer for OpenGL rendering.

(Inherited from SoGLRenderToBuffer.)
Public methodReleaseTexImage
Calls ReleaseTexImage(false).
(Inherited from SoGLRenderToBuffer.)
Public methodReleaseTexImage(Boolean)

Releases the Pbuffer from the current texture object.

(Inherited from SoGLRenderToBuffer.)
Public methodResize(SbVec2i32)

Resizes Pbuffer.

(Inherited from SoGLRenderToBuffer.)
Public methodResize(SbVec2s)

Resizes Pbuffer.

(Inherited from SoGLRenderToBuffer.)
Public methodSelectCubeMapFace

Selects the face to be used when the rendering target is a cube map.

(Inherited from SoGLRenderToBuffer.)
Public methodSetContextForSharing

++ This has effect only when using PBuffer.

(Inherited from SoGLRenderToBuffer.)
Public methodSetGraphicConfigTemplate

Sets a new graphics configuration template.

(Inherited from SoGLRenderToBuffer.)
Public methodSetPixelFormat

Sets the current pixel format.

(Inherited from SoGLRenderToBuffer.)
Public methodSetRenderToTexture(Boolean)
Calls SetRenderToTexture(enable, OIV.Inventor.SoGLRenderToBuffer.TextureFormats( .SoGLRenderToBuffer.TEXTURE_RGB ), OIV.Inventor.SoGLRenderToBuffer.TextureTargets( .SoGLRenderToBuffer.TEXTURE_2D ), false, false).
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats)
Calls SetRenderToTexture(enable, format, OIV.Inventor.SoGLRenderToBuffer.TextureTargets( .SoGLRenderToBuffer.TEXTURE_2D ), false, false).
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets)
Calls SetRenderToTexture(enable, format, target, false, false).
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean)
Calls SetRenderToTexture(enable, format, target, autoMipmap, false).
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean, Boolean)

Specifies settings for the Pbuffer creation.

Public methodShareCurrentContext

Share OpenGL object with the current context.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

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".

See Also