PeachDrawing
PeachDrawing
DepthBuffer Class
One depth value per pixel of a RasterSurface of the same size, for composing the planes of a 3D rendering context: larger is nearer the viewer, and a fresh buffer holds negative infinity (nothing drawn). Rented from the shared array pool, so a context costs one object and no garbage.
public sealed class DepthBuffer : System.IDisposable
Inheritance System.Object → DepthBuffer
Implements System.IDisposable
| Constructors | |
|---|---|
| DepthBuffer(int, int) | Creates a buffer of width x height depths, all negative infinity (nothing drawn). |
| Properties | |
|---|---|
| Height | The buffer’s height, in pixels. |
| Width | The buffer’s width, in pixels. |
| Methods | |
|---|---|
| Dispose() | Returns the buffer to the shared pool. |
| Row(int) | The depths of row y. |