DepthWriteAttrib

from panda3d.core import DepthWriteAttrib
class DepthWriteAttrib

Bases:

Bases: RenderAttrib

Enables or disables writing to the depth buffer.

Inheritance diagram

Inheritance diagram of DepthWriteAttrib

enum Mode
enumerator M_off = 0
enumerator M_on = 1
property class_slot int
static getClassSlot() int
static getClassType() TypeHandle
getMode() Mode

Returns the depth write mode.

static make(mode: Mode) RenderAttrib

Constructs a new DepthWriteAttrib object.

static makeDefault() RenderAttrib

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

property mode Mode

Returns the depth write mode.