| SoDepthBufferElementSet Method (SoState, SoDepthBuffer, Boolean, Boolean, SoDepthBufferElementDepthWriteFunctions, SbVec2f) | 
Sets the depth buffer parameters. 
 
Namespace: OIV.Inventor.ElementsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2025.2.0.0 (10.18.0.0)
Syntaxpublic static void Set(
	SoState state,
	SoDepthBuffer depthBuffer,
	bool test,
	bool write,
	SoDepthBufferElementDepthWriteFunctions function,
	SbVec2f range
)
Public Shared Sub Set ( 
	state As SoState,
	depthBuffer As SoDepthBuffer,
	test As Boolean,
	write As Boolean,
	function As SoDepthBufferElementDepthWriteFunctions,
	range As SbVec2f
)
public:
static void Set(
	SoState^ state, 
	SoDepthBuffer^ depthBuffer, 
	bool test, 
	bool write, 
	SoDepthBufferElementDepthWriteFunctions function, 
	SbVec2f range
)
static member Set : 
        state : SoState * 
        depthBuffer : SoDepthBuffer * 
        test : bool * 
        write : bool * 
        function : SoDepthBufferElementDepthWriteFunctions * 
        range : SbVec2f -> unit 
Parameters
- state
 - Type: OIV.Inventor.MiscSoState
 - depthBuffer
 - Type: OIV.Inventor.NodesSoDepthBuffer
 - test
 - Type: SystemBoolean
 - write
 - Type: SystemBoolean
 - function
 - Type: OIV.Inventor.ElementsSoDepthBufferElementDepthWriteFunctions
 - range
 - Type: OIV.InventorSbVec2f
 
RemarksThis method will (indirectly) call glDepthMask, glDepthFunc, glDepthRange with the new values 
See Also