| OcclusionBuffer Constructor (IGraphicsService, Int32, Int32, Int32) |
Initializes a new instance of the
OcclusionBuffer class with the specified
buffer size.
Namespace: DigitalRune.Graphics.RenderingAssembly: 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
)
Public Sub New (
graphicsService As IGraphicsService,
width As Integer,
height As Integer,
bufferSize As Integer
)
public:
OcclusionBuffer(
IGraphicsService^ graphicsService,
int width,
int height,
int bufferSize
)
new :
graphicsService : IGraphicsService *
width : int *
height : int *
bufferSize : int -> OcclusionBuffer
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 See Also