|
| PURibbonTrail (const std::string &name, const std::string &texFile="", size_t maxElements=20, size_t numberOfChains=1, bool useTextureCoords=true, bool useColours=true) |
| Constructor. More...
|
|
virtual | ~PURibbonTrail () |
| destructor More...
|
|
virtual void | addNode (Node *n) |
| Add a node to be tracked. More...
|
|
var | addNode ( var n) |
| Add a node to be tracked. More...
|
|
local | addNode ( local n) |
| Add a node to be tracked. More...
|
|
virtual void | removeNode (Node *n) |
| Remove tracking on a given node. More...
|
|
local | removeNode ( local n) |
| Remove tracking on a given node. More...
|
|
virtual size_t | getChainIndexForNode (const Node *n) |
| Get the chain index for a given Node being tracked. More...
|
|
var | getChainIndexForNode ( var n) |
| Get the chain index for a given Node being tracked. More...
|
|
local | getChainIndexForNode ( local n) |
| Get the chain index for a given Node being tracked. More...
|
|
void | setAttachedNode (Node *parent) |
virtual void | setTrailLength (float len) |
| Set the length of the trail. More...
|
|
local | setTrailLength ( local len) |
| Set the length of the trail. More...
|
|
virtual float | getTrailLength (void) const |
| Get the length of the trail. More...
|
|
local | getTrailLength () |
| Get the length of the trail. More...
|
|
void | setMaxChainElements (size_t maxElements) |
|
void | setNumberOfChains (size_t numChains) |
|
void | clearChain (size_t chainIndex) |
|
virtual void | setInitialColour (size_t chainIndex, const Vec4 &col) |
| Set the starting ribbon colour for a given segment. More...
|
|
local | setInitialColour ( local chainIndex, local col) |
| Set the starting ribbon colour for a given segment. More...
|
|
virtual void | setInitialColour (size_t chainIndex, float r, float g, float b, float a=1.0) |
| Set the starting ribbon colour. More...
|
|
virtual const Vec4 & | getInitialColour (size_t chainIndex) const |
| Get the starting ribbon colour. More...
|
|
virtual void | setColourChange (size_t chainIndex, const Vec4 &valuePerSecond) |
| Enables / disables fading the trail using colour. More...
|
|
virtual void | setInitialWidth (size_t chainIndex, float width) |
| Set the starting ribbon width in world units. More...
|
|
virtual float | getInitialWidth (size_t chainIndex) const |
| Get the starting ribbon width in world units. More...
|
|
virtual void | setWidthChange (size_t chainIndex, float widthDeltaPerSecond) |
| Set the change in ribbon width per second. More...
|
|
var | setWidthChange ( var chainIndex, var widthDeltaPerSecond) |
| Set the change in ribbon width per second. More...
|
|
local | setWidthChange ( local chainIndex, local widthDeltaPerSecond) |
| Set the change in ribbon width per second. More...
|
|
virtual float | getWidthChange (size_t chainIndex) const |
| Get the change in ribbon width per second. More...
|
|
virtual void | setColourChange (size_t chainIndex, float r, float g, float b, float a) |
| Enables / disables fading the trail using colour. More...
|
|
local | setColourChange ( local chainIndex, local r, local g, local b, local a) |
| Enables / disables fading the trail using colour. More...
|
|
virtual const Vec4 & | getColourChange (size_t chainIndex) const |
| Get the per-second fading amount. More...
|
|
void | update (float deltaTime) |
void | nodeUpdated (const Node *node) |
void | nodeDestroyed (const Node *node) |
void | timeUpdate (float time) |
| Perform any fading / width delta required; internal method. More...
|
|
| PUBillboardChain (const std::string &name, const std::string &texFile="", size_t maxElements=20, size_t numberOfChains=1, bool useTextureCoords=true, bool useColours=true, bool dynamic=true) |
| Constructor. More...
|
|
| PUBillboardChain ( var name, var 20, var 1, var true, var true, var true) |
| Constructor. More...
|
|
| PUBillboardChain ( local name, local 20, local 1, local true, local true, local true) |
| Constructor. More...
|
|
virtual | ~PUBillboardChain () |
| destructor More...
|
|
virtual size_t | getMaxChainElements (void) const |
| Get the maximum number of chain elements per chain. More...
|
|
virtual size_t | getNumberOfChains (void) const |
| Get the number of chain segments (this class can render multiple chains at once using the same material). More...
|
|
virtual void | setUseTextureCoords (bool use) |
| Sets whether texture coordinate information should be included in the final buffers generated. More...
|
|
virtual bool | getUseTextureCoords (void) const |
| Gets whether texture coordinate information should be included in the final buffers generated. More...
|
|
var | getUseTextureCoords () |
| Gets whether texture coordinate information should be included in the final buffers generated. More...
|
|
local | getUseTextureCoords () |
| Gets whether texture coordinate information should be included in the final buffers generated. More...
|
|
virtual void | setTextureCoordDirection (TexCoordDirection dir) |
| Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain. More...
|
|
virtual TexCoordDirection | getTextureCoordDirection (void) |
| Gets the direction in which texture coords specified on each element are deemed to run. More...
|
|
local | getTextureCoordDirection () |
| Gets the direction in which texture coords specified on each element are deemed to run. More...
|
|
virtual void | setOtherTextureCoordRange (float start, float end) |
| Set the range of the texture coordinates generated across the width of the chain elements. More...
|
|
virtual const float * | getOtherTextureCoordRange (void) const |
| Get the range of the texture coordinates generated across the width of the chain elements. More...
|
|
virtual void | setUseVertexColours (bool use) |
| Sets whether vertex colour information should be included in the final buffers generated. More...
|
|
virtual bool | getUseVertexColours (void) const |
| Gets whether vertex colour information should be included in the final buffers generated. More...
|
|
virtual void | setDynamic (bool dyn) |
| Sets whether or not the buffers created for this object are suitable for dynamic alteration. More...
|
|
virtual bool | getDynamic (void) const |
| Gets whether or not the buffers created for this object are suitable for dynamic alteration. More...
|
|
virtual void | addChainElement (size_t chainIndex, const Element &billboardChainElement) |
| Add an element to the 'head' of a chain. More...
|
|
local | addChainElement ( local chainIndex, local billboardChainElement) |
| Add an element to the 'head' of a chain. More...
|
|
virtual void | removeChainElement (size_t chainIndex) |
| Remove an element from the 'tail' of a chain. More...
|
|
virtual void | updateChainElement (size_t chainIndex, size_t elementIndex, const Element &billboardChainElement) |
| Update the details of an existing chain element. More...
|
|
var | updateChainElement ( var chainIndex, var elementIndex, var billboardChainElement) |
| Update the details of an existing chain element. More...
|
|
local | updateChainElement ( local chainIndex, local elementIndex, local billboardChainElement) |
| Update the details of an existing chain element. More...
|
|
virtual const Element & | getChainElement (size_t chainIndex, size_t elementIndex) const |
| Get the detail of a chain element. More...
|
|
local | getChainElement ( local chainIndex, local elementIndex) |
| Get the detail of a chain element. More...
|
|
virtual size_t | getNumChainElements (size_t chainIndex) const |
| Returns the number of chain elements. More...
|
|
virtual void | clearAllChains (void) |
| Remove all elements from all chains (but leave the chains themselves intact). More...
|
|
void | setFaceCamera (bool faceCamera, const Vec3 &normalVector=Vec3::UNIT_X) |
| Sets whether the billboard should always be facing the camera or a custom direction set by each point element. More...
|
|
virtual void | setDepthTest (bool isDepthTest) |
virtual void | setDepthWrite (bool isDepthWrite) |
void | render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem) |