SoGLCacheContextElementSet Method |
Sets the current context.
Namespace: OIV.Inventor.Elements
public static void Set( SoState state, int context, bool is2PassTransparency, bool isRemoteRendering )
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.