LogicOpAttrib

from acron.core import LogicOpAttrib
class LogicOpAttrib

Bases:

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.

Added in version 1.10.0.

Inheritance diagram

digraph inheritanceffc77dc741 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "LogicOpAttrib" [URL="acron.core.LogicOpAttrib.html#acron.core.LogicOpAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderAttrib" -> "LogicOpAttrib" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RenderAttrib" [URL="acron.core.RenderAttrib.html#acron.core.RenderAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderAttrib" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
enum Operation
enumerator O_none = 0

LogicOp disabled, regular blending occurs.

enumerator O_clear = 1

Clears framebuffer value.

enumerator O_and = 2
enumerator O_and_reverse = 3
enumerator O_copy = 4

Writes the incoming color to the framebuffer.

enumerator O_and_inverted = 5
enumerator O_noop = 6

Leaves the framebuffer value unaltered.

enumerator O_xor = 7
enumerator O_or = 8
enumerator O_nor = 9
enumerator O_equivalent = 10
enumerator O_invert = 11
enumerator O_or_reverse = 12
enumerator O_copy_inverted = 13
enumerator O_or_inverted = 14
enumerator O_nand = 15
enumerator O_set = 16

Sets all the bits in the framebuffer to 1.

property class_slot → int
static get_class_slot()
static get_class_type()
get_operation()

Returns the logic operation specified by this attribute.

static make()

Constructs a new LogicOpAttrib object with the given logic operation.

static make_default()

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

static make_off()

Constructs a new LogicOpAttrib object that disables special-effect blending, allowing normal transparency to be used instead.

property operation → Operation

Returns the logic operation specified by this attribute.