Project

General

Profile

SO3Engine

#include <SO3Terrain.h>

Inheritance diagram for SO3::STerrain:
SO3::SData

Public Member Functions

 STerrain (SScene *scene, const std::string &resName)
 
 ~STerrain ()
 
bool DefineHeightMap (std::string heightmap, Ogre::Real worldSize=10000.0f, Ogre::Real scale=600.0f, Ogre::uint16 minBatchsize=33, Ogre::uint16 maxBatchsize=65)
 
SSceneGetParentScene ()
 
void UpdateLight (Ogre::ColourValue ambColor, Ogre::ColourValue sunColor, Ogre::Vector3 sunDir)
 
- Public Member Functions inherited from SO3::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Protected Attributes

SScenemScene
 
Ogre::Terrain * mTerrain
 
Ogre::TerrainGlobalOptions * mGlobals
 
std::string mResourceGroup
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 41 of file SO3Terrain.h.

Constructor & Destructor Documentation

◆ STerrain()

SO3::STerrain::STerrain ( SScene scene,
const std::string &  resName 
)

Definition at line 41 of file SO3Terrain.cpp.

◆ ~STerrain()

SO3::STerrain::~STerrain ( )

Destructor

Definition at line 69 of file SO3Terrain.cpp.

Member Function Documentation

◆ DefineHeightMap()

bool SO3::STerrain::DefineHeightMap ( std::string  heightmap,
Ogre::Real  worldSize = 10000.0f,
Ogre::Real  scale = 600.0f,
Ogre::uint16  minBatchsize = 33,
Ogre::uint16  maxBatchsize = 65 
)

Definition at line 86 of file SO3Terrain.cpp.

◆ GetParentScene()

SScene * SO3::STerrain::GetParentScene ( )

Definition at line 81 of file SO3Terrain.cpp.

◆ UpdateLight()

void SO3::STerrain::UpdateLight ( Ogre::ColourValue  ambColor,
Ogre::ColourValue  sunColor,
Ogre::Vector3  sunDir 
)

Definition at line 171 of file SO3Terrain.cpp.

Member Data Documentation

◆ mGlobals

Ogre::TerrainGlobalOptions* SO3::STerrain::mGlobals
protected

Definition at line 68 of file SO3Terrain.h.

◆ mResourceGroup

std::string SO3::STerrain::mResourceGroup
protected

Definition at line 69 of file SO3Terrain.h.

◆ mScene

SScene* SO3::STerrain::mScene
protected

Definition at line 66 of file SO3Terrain.h.

◆ mTerrain

Ogre::Terrain* SO3::STerrain::mTerrain
protected

Definition at line 67 of file SO3Terrain.h.


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