#include <Terrain.h>
Public Member Functions | |
| MyTerrain (TerrainConfig *config) | |
| ~MyTerrain (void) | |
| virtual void | Initialize ()=0 |
| osg::MatrixTransform * | GetNode () |
| osg::MatrixTransform * | GetLightNode () |
| void | SetFog (Fog *fog) |
| osg::ref_ptr< osg::Texture2D > | GetHeightTexture () |
| osg::ref_ptr< osg::Texture2D > | GetDefinitionTexture () |
| osg::ref_ptr< osg::Texture2D > | GetOrthogonalTexture () |
Protected Attributes | |
| Fog * | m_fog |
| osg::ref_ptr< osg::Texture2D > | tex_height |
| osg::ref_ptr< osg::Texture2D > | tex_def |
| osg::ref_ptr< osg::Texture2D > | tex_ortho |
| TerrainConfig * | m_config |
| osg::ref_ptr< osg::Program > | terrainShadowProg |
| osg::ref_ptr< osg::Program > | mieTerrainProg |
|
osg::ref_ptr < osg::MatrixTransform > | trans |
|
osg::ref_ptr < osg::MatrixTransform > | trans_light |
| bool | m_use_geometry_shader |
Parent class to create a terrain.
| osgCloudyDay::MyTerrain::MyTerrain | ( | TerrainConfig * | config | ) |
Constructor
| config | configuration of the terrain |
| osgCloudyDay::MyTerrain::~MyTerrain | ( | void | ) |
Deconstructor
| osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetDefinitionTexture | ( | ) |
Returns the definition texture of the terrain
| osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetHeightTexture | ( | ) |
Returns the height texture of the terrain
| osg::MatrixTransform * osgCloudyDay::MyTerrain::GetLightNode | ( | ) |
Returns the node to integrate it into the light source camera
| osg::MatrixTransform * osgCloudyDay::MyTerrain::GetNode | ( | ) |
Returns the node to integrate it into the viewer camera
| osg::ref_ptr< osg::Texture2D > osgCloudyDay::MyTerrain::GetOrthogonalTexture | ( | ) |
Returns the orthogonal texture of the terrain
|
pure virtual |
Initalize method, creates the terrain
Implemented in osgCloudyDay::TerrainHimmel, osgCloudyDay::TerrainGeometry, and osgCloudyDay::TerrainMIE.
| void osgCloudyDay::MyTerrain::SetFog | ( | Fog * | fog | ) |
Set function for fog
| Fog | class, which saves the fog. |
1.8.1.1