#include <OgreTerrainMaterialGeneratorA.h>
Public Member Functions | |
SM2Profile (TerrainMaterialGenerator *parent, const String &name, const String &desc) | |
~SM2Profile () | |
MaterialPtr | generate (const Terrain *terrain) |
Generate / resuse a material for the terrain. | |
MaterialPtr | generateForCompositeMap (const Terrain *terrain) |
Generate / resuse a material for the terrain. | |
uint8 | getMaxLayers (const Terrain *terrain) const |
Get the number of layers supported. | |
void | updateParams (const MaterialPtr &mat, const Terrain *terrain) |
Update params for a terrain. | |
void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) |
Update params for a terrain. | |
void | requestOptions (Terrain *terrain) |
Request the options needed from the terrain. | |
bool | isLayerNormalMappingEnabled () const |
Whether to support normal mapping per layer in the shader (default true). | |
void | setLayerNormalMappingEnabled (bool enabled) |
Whether to support normal mapping per layer in the shader (default true). | |
bool | isLayerParallaxMappingEnabled () const |
Whether to support parallax mapping per layer in the shader (default true). | |
void | setLayerParallaxMappingEnabled (bool enabled) |
Whether to support parallax mapping per layer in the shader (default true). | |
bool | isLayerSpecularMappingEnabled () const |
Whether to support specular mapping per layer in the shader (default true). | |
void | setLayerSpecularMappingEnabled (bool enabled) |
Whether to support specular mapping per layer in the shader (default true). | |
bool | isGlobalColourMapEnabled () const |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). | |
void | setGlobalColourMapEnabled (bool enabled) |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). | |
bool | isLightmapEnabled () const |
Whether to support a light map over the terrain in the shader, if it's present (default true). | |
void | setLightmapEnabled (bool enabled) |
Whether to support a light map over the terrain in the shader, if it's present (default true). | |
bool | isCompositeMapEnabled () const |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). | |
void | setCompositeMapEnabled (bool enabled) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). | |
bool | getReceiveDynamicShadowsEnabled () const |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). | |
void | setReceiveDynamicShadowsEnabled (bool enabled) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). | |
void | setReceiveDynamicShadowsPSSM (PSSMShadowCameraSetup *pssmSettings) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). | |
PSSMShadowCameraSetup * | getReceiveDynamicShadowsPSSM () const |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). | |
void | setReceiveDynamicShadowsDepth (bool enabled) |
Whether to use depth shadows (default false). | |
bool | getReceiveDynamicShadowsDepth () const |
Whether to use depth shadows (default false). | |
void | setReceiveDynamicShadowsLowLod (bool enabled) |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). | |
bool | getReceiveDynamicShadowsLowLod () const |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). | |
bool | _isSM3Available () const |
Internal. | |
TerrainMaterialGenerator * | getParent () const |
Get the generator which owns this profile. | |
const String & | getName () const |
Get the name of this profile. | |
const String & | getDescription () const |
Get the description of this profile. | |
virtual void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
Update the composite map for a terrain. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Types | |
enum | TechniqueType { HIGH_LOD, LOW_LOD, RENDER_COMPOSITE_MAP } |
Protected Member Functions | |
void | addTechnique (const MaterialPtr &mat, const Terrain *terrain, TechniqueType tt) |
bool | isShadowingEnabled (TechniqueType tt, const Terrain *terrain) const |
Protected Attributes | |
ShaderHelper * | mShaderGen |
bool | mLayerNormalMappingEnabled |
bool | mLayerParallaxMappingEnabled |
bool | mLayerSpecularMappingEnabled |
bool | mGlobalColourMapEnabled |
bool | mLightmapEnabled |
bool | mCompositeMapEnabled |
bool | mReceiveDynamicShadows |
PSSMShadowCameraSetup * | mPSSM |
bool | mDepthShadows |
bool | mLowLodShadows |
bool | mSM3Available |
TerrainMaterialGenerator * | mParent |
String | mName |
String | mDesc |
Classes | |
class | ShaderHelper |
Interface definition for helper class to generate shaders. More... | |
class | ShaderHelperCg |
Utility class to help with generating shaders for Cg / HLSL. More... | |
class | ShaderHelperGLSL |
Utility class to help with generating shaders for GLSL. More... | |
class | ShaderHelperHLSL |
Definition at line 61 of file OgreTerrainMaterialGeneratorA.h.
enum Ogre::TerrainMaterialGeneratorA::SM2Profile::TechniqueType [protected] |
Definition at line 150 of file OgreTerrainMaterialGeneratorA.h.
Ogre::TerrainMaterialGeneratorA::SM2Profile::SM2Profile | ( | TerrainMaterialGenerator * | parent, | |
const String & | name, | |||
const String & | desc | |||
) |
Ogre::TerrainMaterialGeneratorA::SM2Profile::~SM2Profile | ( | ) |
MaterialPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::generate | ( | const Terrain * | terrain | ) | [virtual] |
MaterialPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::generateForCompositeMap | ( | const Terrain * | terrain | ) | [virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::updateParams | ( | const MaterialPtr & | mat, | |
const Terrain * | terrain | |||
) | [virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::updateParamsForCompositeMap | ( | const MaterialPtr & | mat, | |
const Terrain * | terrain | |||
) | [virtual] |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::requestOptions | ( | Terrain * | terrain | ) | [virtual] |
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerNormalMappingEnabled | ( | ) | const |
Whether to support normal mapping per layer in the shader (default true).
Definition at line 75 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerNormalMappingEnabled | ( | bool | enabled | ) |
Whether to support normal mapping per layer in the shader (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerParallaxMappingEnabled | ( | ) | const |
Whether to support parallax mapping per layer in the shader (default true).
Definition at line 81 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerParallaxMappingEnabled | ( | bool | enabled | ) |
Whether to support parallax mapping per layer in the shader (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerSpecularMappingEnabled | ( | ) | const |
Whether to support specular mapping per layer in the shader (default true).
Definition at line 87 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerSpecularMappingEnabled | ( | bool | enabled | ) |
Whether to support specular mapping per layer in the shader (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isGlobalColourMapEnabled | ( | ) | const |
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
Definition at line 94 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setGlobalColourMapEnabled | ( | bool | enabled | ) |
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLightmapEnabled | ( | ) | const |
Whether to support a light map over the terrain in the shader, if it's present (default true).
Definition at line 102 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLightmapEnabled | ( | bool | enabled | ) |
Whether to support a light map over the terrain in the shader, if it's present (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isCompositeMapEnabled | ( | ) | const |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
Definition at line 110 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setCompositeMapEnabled | ( | bool | enabled | ) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsEnabled | ( | ) | const |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
Definition at line 118 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsEnabled | ( | bool | enabled | ) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsPSSM | ( | PSSMShadowCameraSetup * | pssmSettings | ) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
PSSMShadowCameraSetup* Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsPSSM | ( | ) | const |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
Definition at line 131 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsDepth | ( | bool | enabled | ) |
Whether to use depth shadows (default false).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsDepth | ( | ) | const |
Whether to use depth shadows (default false).
Definition at line 137 of file OgreTerrainMaterialGeneratorA.h.
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsLowLod | ( | bool | enabled | ) |
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsLowLod | ( | ) | const |
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
Definition at line 143 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::_isSM3Available | ( | ) | const |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::addTechnique | ( | const MaterialPtr & | mat, | |
const Terrain * | terrain, | |||
TechniqueType | tt | |||
) | [protected] |
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isShadowingEnabled | ( | TechniqueType | tt, | |
const Terrain * | terrain | |||
) | const [protected] |
TerrainMaterialGenerator* Ogre::TerrainMaterialGenerator::Profile::getParent | ( | ) | const [inherited] |
Get the generator which owns this profile.
Definition at line 174 of file OgreTerrainMaterialGenerator.h.
const String& Ogre::TerrainMaterialGenerator::Profile::getName | ( | void | ) | const [inherited] |
const String& Ogre::TerrainMaterialGenerator::Profile::getDescription | ( | ) | const [inherited] |
virtual void Ogre::TerrainMaterialGenerator::Profile::updateCompositeMap | ( | const Terrain * | terrain, | |
const Rect & | rect | |||
) | [virtual, inherited] |
Update the composite map for a terrain.
Referenced by Ogre::TerrainMaterialGenerator::updateCompositeMap().
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
Definition at line 231 of file OgreTerrainMaterialGeneratorA.h.
Definition at line 232 of file OgreTerrainMaterialGeneratorA.h.
Definition at line 233 of file OgreTerrainMaterialGeneratorA.h.
Definition at line 234 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mGlobalColourMapEnabled [protected] |
Definition at line 235 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLightmapEnabled [protected] |
Definition at line 236 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mCompositeMapEnabled [protected] |
Definition at line 237 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mReceiveDynamicShadows [protected] |
Definition at line 238 of file OgreTerrainMaterialGeneratorA.h.
Definition at line 239 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mDepthShadows [protected] |
Definition at line 240 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLowLodShadows [protected] |
Definition at line 241 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mSM3Available [protected] |
Definition at line 242 of file OgreTerrainMaterialGeneratorA.h.
TerrainMaterialGenerator* Ogre::TerrainMaterialGenerator::Profile::mParent [protected, inherited] |
Definition at line 164 of file OgreTerrainMaterialGenerator.h.
String Ogre::TerrainMaterialGenerator::Profile::mName [protected, inherited] |
Definition at line 165 of file OgreTerrainMaterialGenerator.h.
String Ogre::TerrainMaterialGenerator::Profile::mDesc [protected, inherited] |
Definition at line 166 of file OgreTerrainMaterialGenerator.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 24 18:09:34 2010