# panda3d.core.CullBinAttrib¶

from panda3d.core import CullBinAttrib

class CullBinAttrib

Bases: RenderAttrib

Assigns geometry to a particular bin by name. The bins must be created separately via the CullBinManager interface.

Inheritance diagram

property bin_name

Returns the name of the bin this attribute specifies. If this is the empty string, it refers to the default bin.

Return type

string

property class_slot
Return type

int

property draw_order

Returns the draw order this attribute specifies. Some bins (in particular, CullBinFixed bins) use this to further specify the order in which objects should be rendered.

Return type

int

getBinName() → str

Returns the name of the bin this attribute specifies. If this is the empty string, it refers to the default bin.

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

TypeHandle

getDrawOrder() → int

Returns the draw order this attribute specifies. Some bins (in particular, CullBinFixed bins) use this to further specify the order in which objects should be rendered.

static make(bin_name: str, draw_order: int) → RenderAttrib

Constructs a new CullBinAttrib assigning geometry into the named bin. If the bin name is the empty string, the default bin is used.

The draw_order specifies further ordering information which is relevant only to certain kinds of bins (in particular CullBinFixed type bins).

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