Click or drag to resize
SoGLCacheContextElementSet Method

Sets the current context.

Namespace: OIV.Inventor.Elements
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public static void Set(
	SoState state,
	int context,
	bool is2PassTransparency,
	bool isRemoteRendering
)

Parameters

state
Type: OIV.Inventor.MiscSoState
context
Type: SystemInt32
is2PassTransparency
Type: SystemBoolean
isRemoteRendering
Type: SystemBoolean
Remarks

This is done by the renderAction; theoretically, a node that redirected the GL rendering context to another X server would also set this. This also frees up any display lists that are waiting for the context to become valid. The third argument indicates whether 2-pass transparency is in effect (as for DELAYED or SORTED blending), which means that caches containing transparent objects may not be valid. The fourth argument should be true if remote rendering is being done; the SoSeparator auto-caching algorithm uses this information to help decide whether or not to build caches.

See Also