Click or drag to resize
SoGLContextGetCurrent Method (Boolean)

Returns the current active OpenGL context (if any).

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.GL (in OIV.Inventor.GL.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public static SoGLContext GetCurrent(
	bool checkGLState
)

Parameters

checkGLState
Type: SystemBoolean

This param is no longer used.

Return Value

Type: SoGLContext

The current OpenGL context (or NULL if there isn't one).

Remarks

This method returns the current active OpenGL context from the Open Inventor state. However it can also get the actual current context from OpenGL. It may be useful if Open Inventor should render using an OpenGL context created by the application or a third-party library. In that case, Open Inventor will create a new OIV.Inventor.Devices.SoGLContext using contextId returned by system getCurrentContext() method.

See Also