SPIN Framework
Public Member Functions

spin::Fog Class Reference

Basic GL Fog node. More...

#include <Fog.h>

Inheritance diagram for spin::Fog:
spin::ReferencedStateSet

List of all members.

Public Member Functions

 Fog (SceneManager *sceneManager, const char *initID)
 ~Fog ()
const char * getPath () const
void setFogDensity (float density)
float getFogDensity () const
void setFogColor (float r, float g, float b, float a)
osg::Vec4 getFogColor () const
virtual std::vector< lo_message > getState () const

Detailed Description

Basic GL Fog node.


Constructor & Destructor Documentation

spin::Fog::~Fog ( )

FIXME: should be virtual


Member Function Documentation

osg::Vec4 spin::Fog::getFogColor ( ) const

Returns fog color

float spin::Fog::getFogDensity ( ) const

Get fog density (good values are around 0.001 - 0.1)

const char* spin::Fog::getPath ( ) const [inline]

need to implement abstract method... ?!

std::vector< lo_message > spin::Fog::getState ( ) const [virtual]

must reimplement

Reimplemented from spin::ReferencedStateSet.

void spin::Fog::setFogColor ( float  r,
float  g,
float  b,
float  a 
)

Set fog color in RGBA value.

void spin::Fog::setFogDensity ( float  density)

Set fog density (good values are around 0.001 - 0.1)


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