Public Types |
enum | ParticleRendererAlphaMode {
PRALPHANONE = 0,
PRALPHAOUT = 1,
PRALPHAIN = 2,
PRALPHAINOUT = 3,
PRALPHAUSER = 4,
PRNOTINITIALIZEDYET = 5
} |
enum | ParticleRendererBlendMethod { PPNOBLEND = 0,
PPBLENDLINEAR = 1,
PPBLENDCUBIC = 2
} |
enum | SparkleParticleLifeScale { SPNOSCALE = 0,
SPSCALE = 1
} |
Public Member Functions |
| SparkleParticleRenderer () |
| Default Constructor.
|
| SparkleParticleRenderer (VBase4 const center, VBase4 const edge, float birth_radius, float death_radius, SparkleParticleLifeScale life_scale, ParticleRendererAlphaMode alpha_mode) |
| Constructor.
|
| SparkleParticleRenderer (SparkleParticleRenderer const copy) |
| Copy Constructor.
|
ParticleRendererAlphaMode | getAlphaMode () |
float | getBirthRadius () |
VBase4 const | getCenterColor () |
float | getDeathRadius () |
VBase4 const | getEdgeColor () |
bool | getIgnoreScale () |
| Returns the "ignore scale" flag.
|
SparkleParticleLifeScale | getLifeScale () |
GeomNode | getRenderNode () |
| Query the geomnode pointer.
|
NodePath | getRenderNodePath () |
| Query the geomnode pointer.
|
float | getUserAlpha () |
| gets alpha for "user" alpha mode
|
| output (ostream out) |
| Write a string representation of this instance to <out>.
|
| setAlphaMode (ParticleRendererAlphaMode am) |
| setBirthRadius (float radius) |
| setCenterColor (VBase4 const c) |
| setColorBlendMode (Mode bm) |
| sets the ColorBlendAttrib on the _render_node
|
| setColorBlendMode (Mode bm, Operand oa, Operand ob) |
| sets the ColorBlendAttrib on the _render_node
|
| setColorBlendMode (Mode bm, Operand oa) |
| sets the ColorBlendAttrib on the _render_node
|
| setDeathRadius (float radius) |
| setEdgeColor (VBase4 const c) |
| setIgnoreScale (bool ignore_scale) |
| Sets the "ignore scale" flag.
|
| setLifeScale (SparkleParticleLifeScale) |
| setUserAlpha (float ua) |
| sets alpha for "user" alpha mode
|
| write (ostream out) |
| Write a string representation of this instance to <out>.
|
| write (ostream out, int indent) |
| Write a string representation of this instance to <out>.
|
setIgnoreScale |
( |
bool |
ignore_scale | ) |
[inherited] |
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.