|
def | addTextureFromFile (self, fileName=None) |
|
def | addTextureFromNode (self, modelName=None, nodeName=None, sizeFromTexels=False) |
|
def | getSourceFileName (self) |
|
def | getSourceNodeName (self) |
|
def | getSourceTextureName (self) |
|
def | setSourceFileName (self, name) |
|
def | setSourceNodeName (self, name) |
|
def | setSourceTextureName (self, name) |
|
def | setTextureFromFile (self, fileName=None) |
|
def | setTextureFromNode (self, modelName=None, nodeName=None, sizeFromTexels=False) |
|
Public Member Functions inherited from SpriteParticleRenderer |
| __init__ (const SpriteParticleRenderer copy) |
| copy constructor More...
|
|
| __init__ (Texture tex) |
| constructor More...
|
|
| 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. More...
|
|
| 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. More...
|
|
| 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. This should only be called after a previous call to set_texture(). More...
|
|
BaseParticleRenderer::ParticleRendererBlendMethod | getAlphaBlendMethod () |
|
bool | getAlphaDisable () |
|
SpriteAnim | getAnim (int n) |
|
bool | getAnimAngleFlag () |
|
bool | getAnimateFramesEnable () |
|
int | getAnimateFramesIndex () |
| Purpose : Gets the frame to be used when animation is disabled. More...
|
|
float | getAnimateFramesRate () |
|
list | getAnims () |
|
LColor | getColor () |
|
ColorInterpolationManager | getColorInterpolationManager () |
|
float | getFinalXScale () |
|
float | getFinalYScale () |
|
float | getHeight () |
| Returns the height of each particle in world units. More...
|
|
float | getInitialXScale () |
|
float | getInitialYScale () |
|
SpriteAnim | getLastAnim () |
|
LTexCoord | getLlUv () |
| Returns the UV coordinate of the lower-left corner; see set_ll_uv(). More...
|
|
LTexCoord | getLlUv (int anim, int frame) |
| Returns the UV coordinate of the lower-left corner; see set_ll_uv(). More...
|
|
float | getNonanimatedTheta () |
|
int | getNumAnims () |
|
Texture | getTexture () |
|
Texture | getTexture (int anim, int frame) |
|
LTexCoord | getUrUv () |
| Returns the UV coordinate of the lower-left corner; see set_ur_uv(). More...
|
|
LTexCoord | getUrUv (int anim, int frame) |
| Returns the UV coordinate of the upper-right corner; see set_ur_uv(). More...
|
|
float | getWidth () |
| Returns the width of each particle in world units. More...
|
|
bool | getXScaleFlag () |
|
bool | getYScaleFlag () |
|
| removeAnimation (int n) |
| Removes an animation texture set from the renderer. More...
|
|
| setAlphaBlendMethod (BaseParticleRenderer::ParticleRendererBlendMethod bm) |
|
| setAlphaDisable (bool ad) |
|
| setAnimAngleFlag (bool animate_theta) |
|
| setAnimateFramesEnable (bool an) |
|
| setAnimateFramesIndex (int i) |
| Purpose : Sets the frame to be used when animation is disabled. More...
|
|
| 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. This should be a reference to a GeomNode or a SequenceNode; it extracts out the texture and UV range from the node. More...
|
|
| setFromNode (const NodePath node_path, str model, str node, bool size_from_texels) |
| If the source type is important, use this one. More...
|
|
| 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. Normally this is (0, 0), but it might be set to something else to use only a portion of the texture. More...
|
|
| setLlUv (const LTexCoord ll_uv, int anim, int frame) |
| Sets the UV coordinate of the lower-left corner of all the sprites generated by this renderer. Normally this is (0, 0), but it might be set to something else to use only a portion of the texture. More...
|
|
| setNonanimatedTheta (float theta) |
|
| setSize (float width, float height) |
| Sets the size of each particle in world units. More...
|
|
| setTexture (Texture tex, float texels_per_unit) |
| Sets the renderer up to render the entire texture image. The scale of each particle is based on the size of the texture in each dimension, modified by texels_per_unit. More...
|
|
| setUrUv (const LTexCoord ur_uv) |
| Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer. Normally this is (1, 1), but it might be set to something else to use only a portion of the texture. More...
|
|
| setUrUv (const LTexCoord ur_uv, int anim, int frame) |
| Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer. Normally this is (1, 1), but it might be set to something else to use only a portion of the texture. More...
|
|
| 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. See set_ignore_scale(). More...
|
|
GeomNode | getRenderNode () |
| Query the geomnode pointer. More...
|
|
NodePath | getRenderNodePath () |
| Query the geomnode pointer. More...
|
|
float | getUserAlpha () |
| gets alpha for "user" alpha mode More...
|
|
| output (Ostream out) |
| Write a string representation of this instance to <out>. More...
|
|
| setAlphaMode (BaseParticleRenderer::ParticleRendererAlphaMode am) |
|
| setColorBlendMode (ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa, ColorBlendAttrib::Operand ob) |
| sets the ColorBlendAttrib on the _render_node More...
|
|
| setIgnoreScale (bool ignore_scale) |
| 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. More...
|
|
| setUserAlpha (float ua) |
| sets alpha for "user" alpha mode More...
|
|
| write (Ostream out, int indent) |
| Write a string representation of this instance to <out>. More...
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count. More...
|
|
| ref () |
| Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | unref () |
| Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
|
|
Contains methods to extend functionality
of the SpriteParticleRenderer class