Click or drag to resize
SoOffscreenRenderAreaSetClearColor Method

Defines the RGBA value used when the color buffer is cleared.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public virtual void SetClearColor(
	SbColorRGBA color
)

Parameters

color
Type: OIV.InventorSbColorRGBA

RGBA value used to clear the color buffer.

Implements

SiRenderAreaSetClearColor(SbColorRGBA)
Remarks

Default is transparent black (0,0,0,0). This is the value used to clear the color buffer when OIV.Inventor.SoOffscreenRenderArea.RenderToFile(System.String, OIV.Inventor.SoOffscreenRenderArea.OutputFormats) or OIV.Inventor.SoOffscreenRenderArea.RenderToBuffer(OIV.Inventor.Devices.SoBufferObject, OIV.Inventor.SoOffscreenRenderArea.OutputFormats) are called with OIV.Inventor.SoOffscreenRenderArea.SetClearPolicy(OIV.Inventor.ViewerComponents.SiRenderArea.ClearPolicies) method set to COLORBUFFER or COLORBUFFER_AND_DEPTHBUFFER . See also setClearPolicy.

See Also