newspeoplefor developersdocumentationdownloads

nTextureAnimator Class Reference
[Scene Animators]

#include <ntextureanimator.h>

Inheritance diagram for nTextureAnimator:

nAnimator nSceneNode nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

nTextureAnimator selects between one of several possible textures.

See also nTextureAnimator Script Interface

(C) 2004 Rafael Van Daele-Hunt

Definition at line 18 of file ntextureanimator.h.


Public Member Functions

 nTextureAnimator ()
 constructor
virtual ~nTextureAnimator ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 save object to persistent stream
virtual Type GetAnimatorType () const
 return the type of this animator object
virtual void Animate (nSceneNode *sceneNode, nRenderContext *renderContext)
 called by scene node objects which wish to be animated by this object
void AddTexture (const char *path)
 Add a texture to the array (with index number equal to the number of textures added thus far).
void SetShaderParam (const char *param)
 Sets the shader state parameter that will be passed to nAbstractShaderNode::SetTexture.

Constructor & Destructor Documentation

nTextureAnimator::nTextureAnimator  ) 
 

constructor

Definition at line 15 of file ntextureanimator_main.cc.

nTextureAnimator::~nTextureAnimator  )  [virtual]
 

destructor

Definition at line 25 of file ntextureanimator_main.cc.


Member Function Documentation

virtual bool nTextureAnimator::SaveCmds nPersistServer ps  )  [virtual]
 

save object to persistent stream

Reimplemented from nAnimator.

nAnimator::Type nTextureAnimator::GetAnimatorType  )  const [inline, virtual]
 

return the type of this animator object

Reimplemented from nAnimator.

Definition at line 57 of file ntextureanimator.h.

void nTextureAnimator::Animate nSceneNode sceneNode,
nRenderContext renderContext
[virtual]
 

called by scene node objects which wish to be animated by this object

This does the actual work of selecting a texture.

Parameters:
sceneNode object to texture (must be of class nAbstractShaderNode)
renderContext current render context

Reimplemented from nAnimator.

Definition at line 38 of file ntextureanimator_main.cc.

void nTextureAnimator::AddTexture const char *  path  ) 
 

Add a texture to the array (with index number equal to the number of textures added thus far).

Definition at line 56 of file ntextureanimator_main.cc.

void nTextureAnimator::SetShaderParam const char *  param  ) 
 

Sets the shader state parameter that will be passed to nAbstractShaderNode::SetTexture.

Definition at line 65 of file ntextureanimator_main.cc.


The documentation for this class was generated from the following files:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.