Click or drag to resize
SoMPEGRendererSetShareContext Method

Sets the OpenGL context to be shared by the OIV.Inventor.MPEG.SoMPEGRenderer.

Namespace: OIV.Inventor.MPEG
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void SetShareContext(
	SbGLShareContext shareCxt
)

Parameters

shareCxt
Type: OIV.InventorSbGLShareContext
Remarks

Its use is strongly recommended, because it can improve performance when switching between on-screen and off-screen rendering. This is because it allows the display lists and texture objects to be shared between the on-screen and off-screen render context. The shared context info is normally obtained by calling the viewer's getShareContext method.

NOTE: It has no effect when the hardware (or driver) does not allow sharing with the off-screen context, for example if Pbuffers are not supported.

See Also