CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes
osgCloudyDay::CloudLayerUpdate Class Reference

#include <CloudLayerUpdate.h>

List of all members.

Public Member Functions

 CloudLayerUpdate (void)
 ~CloudLayerUpdate (void)
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
bool operator() (unsigned short i, unsigned short j)
bool CloudAdded ()

Public Attributes

float * depth
osg::ref_ptr< osg::Geometry > bb_geo

Detailed Description

Class, which upadates the states of the clouds at runtime. Sorts the indices after the depth, add some clouds and so on.


Constructor & Destructor Documentation

osgCloudyDay::CloudLayerUpdate::CloudLayerUpdate ( void  )

Standardconstructor

osgCloudyDay::CloudLayerUpdate::~CloudLayerUpdate ( void  )

Standarddeconstructor


Member Function Documentation

bool osgCloudyDay::CloudLayerUpdate::CloudAdded ( )

Returns true, if a cloud is added in the last call of CloudLayerUpdate. Otherwise, false

Returns:
is a cloud added?
void osgCloudyDay::CloudLayerUpdate::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

Update callback. Sorts the particle (before culling).

bool osgCloudyDay::CloudLayerUpdate::operator() ( unsigned short  i,
unsigned short  j 
)
inline

Operator to sort the sprites within the cloud.


Member Data Documentation

float* osgCloudyDay::CloudLayerUpdate::depth

Helper array to sort the indices after depth


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