panda3d.core.DepthTestAttrib

class DepthTestAttrib

Bases: RenderAttrib

Enables or disables writing to the depth buffer.

Inheritance diagram

Inheritance diagram of DepthTestAttrib

property class_slot
Return type

int

static getClassSlot() → int
static getClassType() → TypeHandle
Return type

TypeHandle

getMode() → PandaCompareFunc

Returns the depth write mode.

Return type

PandaCompareFunc

static make(mode: PandaCompareFunc) → RenderAttrib

Constructs a new DepthTestAttrib object.

Return type

RenderAttrib

static makeDefault() → RenderAttrib

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

Return type

RenderAttrib

property mode

Returns the depth write mode.

Return type

PandaCompareFunc