CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions
osgCloudyDay::Cirrus Class Reference

#include <Cirrus.h>

Inheritance diagram for osgCloudyDay::Cirrus:
osgCloudyDay::Cloud2D

List of all members.

Public Member Functions

 Cirrus (osg::Vec3 position, osg::Vec2 size)
 ~Cirrus (void)
void Initialize (osg::Vec3 position, osg::Vec2 size)
virtual void SetupGeometry (osg::Vec3 position, osg::Vec2 size, osg::Vec3Array *coords, osg::Vec2Array *tcoords, osg::UIntArray *indices)
- Public Member Functions inherited from osgCloudyDay::Cloud2D
 Cloud2D ()
 ~Cloud2D ()
void Cloud2D::SetGeometry ()
void Cloud2D::SetGeometry (osg::Vec3 position, osg::Vec2 size)
void Cloud2D::Create (osg::Geode *geode, osg::Image *perlinImg)
void Create (osg::Geode *geode, osg::Image *perlinImg, osg::Image *perlinNormalImg)
void Create (osg::Geode *geode, osg::Image *perlinImg, osg::Image *perlinNormalImg, osg::Image *perlinHeightImg)
osg::Image * CreateNormalMap (osg::Image *img)

Additional Inherited Members

- Public Attributes inherited from osgCloudyDay::Cloud2D
osg::Geometry * geom
osg::Geode * geode
osg::Node * terrain_obj
bool m_tesselation
- Protected Attributes inherited from osgCloudyDay::Cloud2D
osg::Vec3Array * coords
osg::Vec2Array * tcoords
osg::UIntArray * indices

Detailed Description

Class to create a 2D alt-cirrus cloud layer


Constructor & Destructor Documentation

osgCloudyDay::Cirrus::Cirrus ( osg::Vec3  position,
osg::Vec2  size 
)

Constructor

Parameters:
positionmiddlepoint of the geometry
sizesize of the geometry
osgCloudyDay::Cirrus::~Cirrus ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::Cirrus::Initialize ( osg::Vec3  position,
osg::Vec2  size 
)

Sets the texture to the cloud and creates the geometry

Parameters:
positionmiddlepoint of the geometry
sizesize of the geometry
void osgCloudyDay::Cirrus::SetupGeometry ( osg::Vec3  position,
osg::Vec2  size,
osg::Vec3Array *  coords,
osg::Vec2Array *  tcoords,
osg::UIntArray *  indices 
)
virtual

Method, which creates the geometry

Parameters:
positionmiddlepoint of the geometry
sizesize of the geometry
verticesVertices array of the geoemtry
texcoordsTexture coordinates array of the geoemtry
indicesIndices array of the geoemtry

Implements osgCloudyDay::Cloud2D.


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