Click or drag to resize
DigitalRuneOcclusionBuffer Constructor (IGraphicsService, Int32, Int32, Int32)
Initializes a new instance of the OcclusionBuffer class with the specified buffer size.

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public OcclusionBuffer(
	IGraphicsService graphicsService,
	int width,
	int height,
	int bufferSize
)

Parameters

graphicsService
Type: DigitalRune.GraphicsIGraphicsService
The graphics service.
width
Type: SystemInt32
The width of the occlusion buffer.
height
Type: SystemInt32
The height of the occlusion buffer.
bufferSize
Type: SystemInt32
The size of the internal triangle buffer (= max number of occluder triangles that can be rendered in a single draw call). Needs to be large enough to store the most complex occluder.
Exceptions
ExceptionCondition
ArgumentNullExceptiongraphicsService is .
See Also