CloseDropsParticles Class Reference

#include <RainCloseDropsParticles.h>

List of all members.


Detailed Description

Class : CloseDropsParticles defines a rain system, with cameras and shaders


Public Member Functions

 CloseDropsParticles (SceneManager *sceneMgr, SceneNode *parentSyst, SceneNode *parentCam)
 ~CloseDropsParticles ()
void createLights ()
RainLightManager * getLightManagerPtr ()
void updateLights ()
void definePosTextureAndBackup ()
void makeControlOverlay ()
void updatePositionTexture (bool primary)
void updateFragmentProgramParameter (const String &name, float value)
void updateFragmentProgramParameter (const String &name, Ogre::Vector3 value)
void updateFragmentProgramParameter (const String &name, Ogre::Vector4 value)
void updateShaderParameters (float tslf, float rainBbSide, float streaksHeight, int nbLights, Vector3 viewPos, Vector3 viewDir, Vector3 fallVect, Vector3 boxMin, Vector3 boxMax, Vector3 lastMove, Vector3 randomMove, int useShader)
void updateTimeSinceLastFrame (float tslf)
void updateRainBilboardSideLength (float rainBbSide)
void updateStreaksHeight (float streaksHeight)
void updateLightCount (float nbLights)
void updateViewPos (Vector3 viewPos)
void updateViewDir (Vector3 viewDir)
void updateFallVector (Vector3 fallVect)
void updateBoxMin (Vector3 boxMin)
void updateBoxMax (Vector3 boxMax)
void updateLastMove (Vector3 lastMove)
void updateRandomMove (Vector3 randomMove)
void hidePositionBillboards ()
void showPositionBillboards ()

Public Attributes

float mRainWidth
float mRainStreaksHeight


Constructor & Destructor Documentation

CloseDropsParticles::CloseDropsParticles SceneManager *  sceneMgr,
SceneNode *  parentSyst,
SceneNode *  parentCam
 

constructor, taking in parameters :

  • the SceneManager used in the scene
  • the SceneNode to which the particle system should be attached
  • the SceneNode to which the auxiliary camera (which we use to texture our drops) should be attached

CloseDropsParticles::~CloseDropsParticles  ) 
 

Destructor


Member Function Documentation

void CloseDropsParticles::createLights  ) 
 

function wich creates the lights (streetlights and bindings to light the drops)

void CloseDropsParticles::definePosTextureAndBackup  ) 
 

function which creates the position texture and it's backup. should be called when initiaiting the rendering of the first frame (through frame listener)

RainLightManager * CloseDropsParticles::getLightManagerPtr  ) 
 

function to retrieve a pointer to the rainLightManager associate with this CloseDropsParticles

void CloseDropsParticles::hidePositionBillboards  )  [inline]
 

functions which hide the particle position billboards. billboards must be hidden when rendering the scene, and visible when updating the position texture

void CloseDropsParticles::makeControlOverlay  ) 
 

control function, to check what the textures look like

void CloseDropsParticles::showPositionBillboards  )  [inline]
 

functions which show the particle position billboards. billboards must be hidden when rendering the scene, and visible when updating the position texture

void CloseDropsParticles::updateBoxMax Vector3  boxMax  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateBoxMin Vector3  boxMin  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateFallVector Vector3  fallVect  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateFragmentProgramParameter const String &  name,
Ogre::Vector4  value
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateFragmentProgramParameter const String &  name,
Ogre::Vector3  value
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateFragmentProgramParameter const String &  name,
float  value
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateLastMove Vector3  lastMove  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateLightCount float  nbLights  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateLights  ) 
 

function which updates the lights, if they are animated

void CloseDropsParticles::updatePositionTexture bool  primary  ) 
 

function to update one of the two position RTT's ; if set to true, the primary texture will be updated

void CloseDropsParticles::updateRainBilboardSideLength float  rainBbSide  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateRandomMove Vector3  randomMove  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateShaderParameters float  tslf,
float  rainBbSide,
float  streaksHeight,
int  nbLights,
Vector3  viewPos,
Vector3  viewDir,
Vector3  fallVect,
Vector3  boxMin,
Vector3  boxMax,
Vector3  lastMove,
Vector3  randomMove,
int  useShader
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateStreaksHeight float  streaksHeight  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateTimeSinceLastFrame float  tslf  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateViewDir Vector3  viewDir  ) 
 

function to update the different shader parameters used to update the particles positions, or render them

void CloseDropsParticles::updateViewPos Vector3  viewPos  ) 
 

function to update the different shader parameters used to update the particles positions, or render them


Member Data Documentation

float CloseDropsParticles::mRainStreaksHeight
 

public variable : wheight of the particles (for streaks)

float CloseDropsParticles::mRainWidth
 

public variable : width of the particles


The documentation for this class was generated from the following files:
Generated on Wed May 17 16:55:30 2006 for gametools-rain by  doxygen 1.4.6