Click or drag to resize
SoSceneManagerSetBackgroundColor Method

Defines the window background color when in RGB mode.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void SetBackgroundColor(
	SbColor c
)

Parameters

c
Type: OIV.InventorSbColor
Remarks

This is the color the scene manager viewport is cleared to when OIV.Inventor.SoSceneManager.Render() is called. Default is black (0,0,0). See also OIV.Inventor.SoSceneManager.SetBackgroundColorRGBA(OIV.Inventor.SbColorRGBA).

Setting the background color will automatically call the OIV.Inventor.SoSceneManager.ScheduleRedraw() method.

The default value can be set using the environment variable OIV_BACKGROUND_COLOR. Specify three floats (R, G, B) in the range 0. to 1., separated by spaces.

See Also