panda3d.physics.BaseParticleRenderer

from panda3d.physics import BaseParticleRenderer
class BaseParticleRenderer

Bases: ReferenceCount

Pure virtual particle renderer base class

Inheritance diagram

Inheritance diagram of BaseParticleRenderer

getRenderNode() → GeomNode

Query the geomnode pointer

Return type

GeomNode

getRenderNodePath() → NodePath

Query the geomnode pointer

Return type

NodePath

setAlphaMode(am: ParticleRendererAlphaMode) → None
getAlphaMode() → ParticleRendererAlphaMode
Return type

ParticleRendererAlphaMode

setUserAlpha(ua: float) → None

sets alpha for “user” alpha mode

getUserAlpha() → float

gets alpha for “user” alpha mode

setColorBlendMode(bm: Mode, oa: Operand, ob: Operand) → None

sets the ColorBlendAttrib on the _render_node

setIgnoreScale(ignore_scale: bool) → None

Sets the “ignore scale” flag. When this is true, particles will be drawn as if they had no scale, regardless of whatever scale might be inherited from above the render node in the scene graph.

This flag is mainly useful to support legacy code that was written for a very early version of Panda, whose sprite particle renderer had a bug that incorrectly ignored the inherited scale.

getIgnoreScale() → bool

Returns the “ignore scale” flag. See setIgnoreScale().

output(out: ostream) → None

Write a string representation of this instance to <out>.

write(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

enum ParticleRendererAlphaMode
enumerator PR_ALPHA_NONE = 0
enumerator PR_ALPHA_OUT = 1
enumerator PR_ALPHA_IN = 2
enumerator PR_ALPHA_IN_OUT = 3
enumerator PR_ALPHA_USER = 4
enumerator PR_NOT_INITIALIZED_YET = 5
enum ParticleRendererBlendMethod
enumerator PP_NO_BLEND = 0
enumerator PP_BLEND_LINEAR = 1
enumerator PP_BLEND_CUBIC = 2