DepthBuffer Class Reference

Class representing the depth buffer. More...

Inheritance diagram for DepthBuffer:
PixelBuffer

List of all members.

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.

Detailed Description

Class representing the depth buffer.


Constructor & Destructor Documentation

DepthBuffer ( int  width,
int  height,
PixelFormat  format 
)

Creates a depth buffer.

Parameters:
widthDepth buffer width
heightDepth buffer height
formatPixel 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.

Returns:
Clones 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.


Member Function Documentation

override Object ShallowClone ( ) [virtual]

Creates a copy of the depth buffer.

Returns:
The copy of 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.