|
| __init__ (const SpriteParticleRenderer copy) |
| copy constructor
|
|
| __init__ (Texture tex) |
| constructor
|
|
| addFromNode (const NodePath node_path, bool size_from_texels, bool resize) |
| This will allow the renderer to randomly choose from more than one texture or sequence at particle birth.
|
|
| addFromNode (const NodePath node_path, str model, str node, bool size_from_texels, bool resize) |
| This will allow the renderer to randomly choose from more than one texture or sequence at particle birth.
|
|
| addTexture (Texture tex, float texels_per_unit, bool resize) |
| Adds texture to image pool, effectively creating a single frame animation that can be selected at particle birth.
|
|
BaseParticleRenderer::ParticleRendererBlendMethod | getAlphaBlendMethod () |
|
bool | getAlphaDisable () |
|
SpriteAnim | getAnim (const int n) |
|
bool | getAnimAngleFlag () |
|
bool | getAnimateFramesEnable () |
|
int | getAnimateFramesIndex () |
|
float | getAnimateFramesRate () |
|
list | getAnims () |
|
LColor | getColor () |
|
ColorInterpolationManager | getColorInterpolationManager () |
|
float | getFinalXScale () |
|
float | getFinalYScale () |
|
float | getHeight () |
| Returns the height of each particle in world units.
|
|
float | getInitialXScale () |
|
float | getInitialYScale () |
|
SpriteAnim | getLastAnim () |
|
LTexCoord | getLlUv () |
| Returns the UV coordinate of the lower-left corner; see set_ll_uv().
|
|
LTexCoord | getLlUv (const int anim, const int frame) |
| Returns the UV coordinate of the lower-left corner; see set_ll_uv().
|
|
float | getNonanimatedTheta () |
|
int | getNumAnims () |
|
Texture | getTexture () |
|
Texture | getTexture (const int anim, const int frame) |
|
LTexCoord | getUrUv () |
| Returns the UV coordinate of the lower-left corner; see set_ur_uv().
|
|
LTexCoord | getUrUv (const int anim, const int frame) |
| Returns the UV coordinate of the upper-right corner; see set_ur_uv().
|
|
float | getWidth () |
| Returns the width of each particle in world units.
|
|
bool | getXScaleFlag () |
|
bool | getYScaleFlag () |
|
| removeAnimation (const int n) |
| Removes an animation texture set from the renderer.
|
|
| setAlphaBlendMethod (BaseParticleRenderer::ParticleRendererBlendMethod bm) |
|
| setAlphaDisable (bool ad) |
|
| setAnimAngleFlag (bool animate_theta) |
|
| setAnimateFramesEnable (bool an) |
|
| setAnimateFramesIndex (int i) |
|
| setAnimateFramesRate (float r) |
|
| setColor (const LColor color) |
|
| setFinalXScale (float final_x_scale) |
|
| setFinalYScale (float final_y_scale) |
|
| setFromNode (const NodePath node_path, bool size_from_texels) |
| Sets the properties on this renderer from the geometry referenced by the indicated NodePath.
|
|
| setFromNode (const NodePath node_path, str model, str node, bool size_from_texels) |
| If the source type is important, use this one.
|
|
| setInitialXScale (float initial_x_scale) |
|
| setInitialYScale (float initial_y_scale) |
|
| setLlUv (const LTexCoord ll_uv) |
| Sets the UV coordinate of the lower-left corner of all the sprites generated by this renderer.
|
|
| setLlUv (const LTexCoord ll_uv, const int anim, const int frame) |
| Sets the UV coordinate of the lower-left corner of all the sprites generated by this renderer.
|
|
| setNonanimatedTheta (float theta) |
|
| setSize (float width, float height) |
| Sets the size of each particle in world units.
|
|
| setTexture (Texture tex, float texels_per_unit) |
| Sets the renderer up to render the entire texture image.
|
|
| setUrUv (const LTexCoord ur_uv) |
| Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer.
|
|
| setUrUv (const LTexCoord ur_uv, const int anim, const int frame) |
| Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer.
|
|
| setXScaleFlag (bool animate_x_ratio) |
|
| setYScaleFlag (bool animate_y_ratio) |
|
Public Member Functions inherited from BaseParticleRenderer |
BaseParticleRenderer::ParticleRendererAlphaMode | getAlphaMode () |
|
bool | getIgnoreScale () |
| Returns the "ignore scale" flag.
|
|
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 (BaseParticleRenderer::ParticleRendererAlphaMode am) |
|
| setColorBlendMode (ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa, ColorBlendAttrib::Operand ob) |
| sets the ColorBlendAttrib on the _render_node
|
|
| setIgnoreScale (bool ignore_scale) |
| Sets the "ignore scale" flag.
|
|
| setUserAlpha (float ua) |
| sets alpha for "user" alpha mode
|
|
| write (Ostream out, int indent) |
| Write a string representation of this instance to <out>.
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count.
|
|
| ref () |
| Explicitly increments the reference count.
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus.
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
|
|
bool | unref () |
| Explicitly decrements the reference count.
|
|
Renders a particle system with high-speed nasty trick sprites.
setFromNode |
( |
const NodePath | node_path, |
|
|
bool | size_from_texels ) |
Sets the properties on this renderer from the geometry referenced by the indicated NodePath.
This should be a reference to a GeomNode or a SequenceNode; it extracts out the texture and UV range from the node.
This will remove all previously added textures and animations. It will also resize the renderer to match this new geometry.
If node_path refers to a GeomNode(or has one beneath it) the texture, its size, and UV data will be extracted from that.
If node_path references a SequenceNode(or has one beneath it) with multiple GeomNodes beneath it, the size data will correspond only to the first GeomNode found with a valid texture, while the texture and UV information will be stored for each individual node.
If size_from_texels is true, the particle size is based on the number of texels in the source image; otherwise, it is based on the size of the first polygon found in the node.
model and node are the two items used to construct node_path. If the source type is important, use set_from_node(NodePath,string,string,bool) instead.