Click or drag to resize
SoFrameBufferObject Class

Note: This API is now obsolete.

Create an OpenGL FrameBuffer.

Inheritance Hierarchy

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

The SoFrameBufferObject type exposes the following members.

Constructors
  NameDescription
Public methodSoFrameBufferObject

Constructor.

Top
Methods
  NameDescription
Public methodBind
Calls Bind((OIV.Inventor.Misc.SoState ^)nullptr, true).
Public methodBind(SoState)
Calls Bind(state, true).
Public methodBind(SoState, Boolean)

Set this Framebuffer as the current rendering target.

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 methodFlush
Calls Flush((OIV.Inventor.Misc.SoState ^)nullptr).
Public methodFlush(SoState)

Blit the multisampling FBO to the regular FBO.

Public methodGetActualSamplesCount

Returns the number of samples actually used by the FBO.

Public methodGetGraphicConfigTemplate

Gets the current graphics configuration template.

(Inherited from SoGLRenderToBuffer.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodStatic memberGetMaxSamples
Calls GetMaxSamples((OIV.Inventor.Misc.SoState ^)nullptr).
Public methodStatic memberGetMaxSamples(SoState)

Returns the maximum number of samples usable for multisampling.

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 methodGetTexture

Returns the attached texture ID.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsAvailable
Calls IsAvailable((OIV.Inventor.Misc.SoState ^)nullptr).
Public methodStatic memberIsAvailable(SoState)

Returns true if FrameBuffers are available on this system.

Public methodStatic memberIsMultisamplingAvailable
Calls IsMultisamplingAvailable((OIV.Inventor.Misc.SoState ^)nullptr).
Public methodStatic memberIsMultisamplingAvailable(SoState)

Returns true if multisampling is available for FrameBuffers on this system.

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).
(Inherited from SoGLRenderToBuffer.)
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats)
Calls SetRenderToTexture(enable, format, OIV.Inventor.SoGLRenderToBuffer.TextureTargets( .SoGLRenderToBuffer.TEXTURE_2D ), false, false).
(Inherited from SoGLRenderToBuffer.)
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets)
Calls SetRenderToTexture(enable, format, target, false, false).
(Inherited from SoGLRenderToBuffer.)
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean)
Calls SetRenderToTexture(enable, format, target, autoMipmap, false).
(Inherited from SoGLRenderToBuffer.)
Public methodSetRenderToTexture(Boolean, SoGLRenderToBufferTextureFormats, SoGLRenderToBufferTextureTargets, Boolean, Boolean)

Specifies settings for the Pbuffer creation.

(Inherited from SoGLRenderToBuffer.)
Public methodSetSamplesCount

Sets the number of samples for multisampling.

Public methodShareCurrentContext

++ This has effect only when using PBuffer.

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

Set the previous framebuffer object as the rendering target.

Top
Remarks

This class encapsulates an OpenGL FrameBuffer object (FBO) which may be used for accelerated off-screen rendering. Unlike a pixmap or offscreen bitmap, a FrameBuffer is allocated in frame buffer memory and can be rendered to directly by the graphics hardware. Unlike Pbuffer, this object is not dependent on the windowing system and shares the current OpenGL context.

FrameBuffers are only available if the graphics hardware supports OpenGL 2.0 or the OpenGL framebufferobject extension. This extension is named "GL_frame_buffer_object".

<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later. Use SoRenderToTarget.

See Also