Class representing the depth buffer. More...
Public Member Functions | |
| DepthBuffer (int width, int height, PixelFormat format) | |
| Creates a depth buffer. | |
| override Object | ShallowClone () |
| Creates a copy of the depth buffer. | |
Protected Member Functions | |
| DepthBuffer (DepthBuffer buffer) | |
| Creates a copy of the depth buffer. | |
Class representing the depth buffer.
| DepthBuffer | ( | int | width, |
| int | height, | ||
| PixelFormat | format | ||
| ) |
Creates a depth buffer.
| width | Depth buffer width |
| height | Depth buffer height |
| format | Pixel format |
Creates a depth buffer. Depth16, Depth24, Depth16Stencil8, or Depth24Stencil8 can be specified to the pixel format. If the specified format cannot be used by the device, a separate format close to the specified value will be used.
| DepthBuffer | ( | DepthBuffer | buffer | ) | [protected] |
Creates a copy of the depth buffer.
Creates a copy of the depth buffer. The 2 depth buffers will then share unmanaged resources. When Dispose() is called for all copies, the shared unmanaged resources will be freed.
| override Object ShallowClone | ( | ) | [virtual] |
Creates a copy of the depth buffer.
Creates a copy of the depth buffer. The 2 depth buffers will then share unmanaged resources. When Dispose() is called for all copies, the shared unmanaged resources will be freed.
Reimplemented from PixelBuffer.