ColorBlendAttrib
from panda3d.core import ColorBlendAttrib
- class ColorBlendAttrib
Bases:
RenderAttrib
This specifies how colors are blended into the frame buffer, for special effects. This overrides transparency if transparency is also specified.
Inheritance diagram
- MAdd = 1
- MInvSubtract = 3
- MMax = 5
- MMin = 4
- MNone = 0
- MSubtract = 2
- M_add = 1
- M_inv_subtract = 3
- M_max = 5
- M_min = 4
- M_none = 0
- M_subtract = 2
- OAlphaScale = 21
- OColorScale = 19
- OConstantAlpha = 12
- OConstantColor = 10
- OFbufferAlpha = 8
- OFbufferColor = 4
- OIncoming1Alpha = 17
- OIncoming1Color = 15
- OIncomingAlpha = 6
- OIncomingColor = 2
- OIncomingColorSaturate = 14
- OOne = 1
- OOneMinusAlphaScale = 22
- OOneMinusColorScale = 20
- OOneMinusConstantAlpha = 13
- OOneMinusConstantColor = 11
- OOneMinusFbufferAlpha = 9
- OOneMinusFbufferColor = 5
- OOneMinusIncoming1Alpha = 18
- OOneMinusIncoming1Color = 16
- OOneMinusIncomingAlpha = 7
- OOneMinusIncomingColor = 3
- OZero = 0
- O_alpha_scale = 21
- O_color_scale = 19
- O_constant_alpha = 12
- O_constant_color = 10
- O_fbuffer_alpha = 8
- O_fbuffer_color = 4
- O_incoming1_alpha = 17
- O_incoming1_color = 15
- O_incoming_alpha = 6
- O_incoming_color = 2
- O_incoming_color_saturate = 14
- O_one = 1
- O_one_minus_alpha_scale = 22
- O_one_minus_color_scale = 20
- O_one_minus_constant_alpha = 13
- O_one_minus_constant_color = 11
- O_one_minus_fbuffer_alpha = 9
- O_one_minus_fbuffer_color = 5
- O_one_minus_incoming1_alpha = 18
- O_one_minus_incoming1_color = 16
- O_one_minus_incoming_alpha = 7
- O_one_minus_incoming_color = 3
- O_zero = 0
- __init__(*args, **kwargs)
- alpha_mode
- alpha_operand_a
- alpha_operand_b
- class_slot = 7
- color
- getAlphaMode()
C++ Interface: get_alpha_mode(ColorBlendAttrib self)
- /**
Returns the blending mode for the alpha channel.
*/
- getAlphaOperandA()
C++ Interface: get_alpha_operand_a(ColorBlendAttrib self)
- /**
Returns the alpha multiplier for the first component.
*/
- getAlphaOperandB()
C++ Interface: get_alpha_operand_b(ColorBlendAttrib self)
- /**
Returns the alpha multiplier for the second component.
*/
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getColor()
C++ Interface: get_color(ColorBlendAttrib self)
- /**
Returns the constant color associated with the attrib.
*/
- getMode()
C++ Interface: get_mode(ColorBlendAttrib self)
- /**
Returns the blending mode for the RGB channels.
*/
- getOperandA()
C++ Interface: get_operand_a(ColorBlendAttrib self)
- /**
Returns the RGB multiplier for the first component.
*/
- getOperandB()
C++ Interface: get_operand_b(ColorBlendAttrib self)
- /**
Returns the RGB multiplier for the second component.
*/
- get_alpha_mode()
C++ Interface: get_alpha_mode(ColorBlendAttrib self)
- /**
Returns the blending mode for the alpha channel.
*/
- get_alpha_operand_a()
C++ Interface: get_alpha_operand_a(ColorBlendAttrib self)
- /**
Returns the alpha multiplier for the first component.
*/
- get_alpha_operand_b()
C++ Interface: get_alpha_operand_b(ColorBlendAttrib self)
- /**
Returns the alpha multiplier for the second component.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_color()
C++ Interface: get_color(ColorBlendAttrib self)
- /**
Returns the constant color associated with the attrib.
*/
- get_mode()
C++ Interface: get_mode(ColorBlendAttrib self)
- /**
Returns the blending mode for the RGB channels.
*/
- get_operand_a()
C++ Interface: get_operand_a(ColorBlendAttrib self)
- /**
Returns the RGB multiplier for the first component.
*/
- get_operand_b()
C++ Interface: get_operand_b(ColorBlendAttrib self)
- /**
Returns the RGB multiplier for the second component.
*/
- involvesColorScale()
C++ Interface: involves_color_scale(ColorBlendAttrib self) involves_color_scale(int operand)
- involvesConstantColor()
C++ Interface: involves_constant_color(ColorBlendAttrib self) involves_constant_color(int operand)
- involves_color_scale()
C++ Interface: involves_color_scale(ColorBlendAttrib self) involves_color_scale(int operand)
- involves_constant_color()
C++ Interface: involves_constant_color(ColorBlendAttrib self) involves_constant_color(int operand)
- make()
C++ Interface: make(int mode) make(int mode, int a, int b) make(int mode, int a, int b, const LVecBase4f color) make(int rgb_mode, int rgb_a, int rgb_b, int alpha_mode, int alpha_a, int alpha_b, const LVecBase4f color)
- /**
Constructs a new ColorBlendAttrib object.
@deprecated Use the three- or four-parameter constructor instead.
*/
- /**
Constructs a new ColorBlendAttrib object that enables special-effect
blending. This supercedes transparency. The given mode and operands are
used for both the RGB and alpha channels.
*/
- /**
Constructs a new ColorBlendAttrib object that enables special-effect
blending. This supercedes transparency. This form is used to specify
separate blending parameters for the RGB and alpha channels.
*/
- 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 ColorBlendAttrib 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 ColorBlendAttrib object that disables special-effect
blending, allowing normal transparency to be used instead.
*/
- rgb_mode
- rgb_operand_a
- rgb_operand_b