RenderStateManager.ZBufferWriteEnable Property

Language:

Note: This documentation is preliminary and is subject to change.

Enables or disables writing to the depth buffer.

Definition

Visual Basic .NET Public Property ZBufferWriteEnable As Boolean
C# public bool ZBufferWriteEnable { get; set; }
Managed C++ public: __property bool get_ZBufferWriteEnable();
public: __property void set_ZBufferWriteEnable(bool);
JScript .NET public function get ZBufferWriteEnable() : boolean
public function set ZBufferWriteEnable(boolean);

Property Value

System.Boolean . Set to true to enable writing to the depth buffer, or false to disable it.

This property is read/write. 

Remarks

The default value is true.

This member enables an application to prevent the system from updating the depth buffer with new depth values.

If false, depth comparisons are still made according to the render state ZBufferFunction, assuming that depth buffering is taking place, but depth values are not written to the buffer.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.