LogicOpAttrib
from panda3d.core import LogicOpAttrib
- class LogicOpAttrib
Bases:
RenderAttrib
If enabled, specifies that a custom logical operation be performed instead of any color blending. Setting it to a value other than M_none will cause color blending to be disabled and the given logic operation to be performed.
New in version 1.10.0.
Inheritance diagram
- OAnd = 2
- OAndInverted = 5
- OAndReverse = 3
- OClear = 1
- OCopy = 4
- OCopyInverted = 13
- OEquivalent = 10
- OInvert = 11
- ONand = 15
- ONone = 0
- ONoop = 6
- ONor = 9
- OOr = 8
- OOrInverted = 14
- OOrReverse = 12
- OSet = 16
- OXor = 7
- O_and = 2
- O_and_inverted = 5
- O_and_reverse = 3
- O_clear = 1
- O_copy = 4
- O_copy_inverted = 13
- O_equivalent = 10
- O_invert = 11
- O_nand = 15
- O_none = 0
- O_noop = 6
- O_nor = 9
- O_or = 8
- O_or_inverted = 14
- O_or_reverse = 12
- O_set = 16
- O_xor = 7
- __init__(*args, **kwargs)
- class_slot = 19
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getOperation()
C++ Interface: get_operation(LogicOpAttrib self)
- /**
Returns the logic operation specified by this attribute.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_operation()
C++ Interface: get_operation(LogicOpAttrib self)
- /**
Returns the logic operation specified by this attribute.
*/
- make()
C++ Interface: make(int op)
- /**
Constructs a new LogicOpAttrib object with the given logic operation.
*/
- makeDefault()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- makeOff()
C++ Interface: make_off()
- /**
Constructs a new LogicOpAttrib object that disables special-effect
blending, allowing normal transparency to be used instead.
*/
- make_default()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- make_off()
C++ Interface: make_off()
- /**
Constructs a new LogicOpAttrib object that disables special-effect
blending, allowing normal transparency to be used instead.
*/
- operation