OGRE  1.9.0
Ogre::TerrainMaterialGeneratorA::SM2Profile Class Reference

Shader model 2 profile target. More...

#include <OgreTerrainMaterialGeneratorA.h>

Inheritance diagram for Ogre::TerrainMaterialGeneratorA::SM2Profile:

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  ShaderHelperGLSLES
 Utility class to help with generating shaders for GLSL ES. More...
 
class  ShaderHelperHLSL
 

Public Member Functions

 SM2Profile (TerrainMaterialGenerator *parent, const String &name, const String &desc)
 
virtual ~SM2Profile ()
 
String _getShaderLanguage () const
 
bool _isSM3Available () const
 Internal.
 
bool _isSM4Available () const
 
MaterialPtr generate (const Terrain *terrain)
 Generate / reuse a material for the terrain.
 
MaterialPtr generateForCompositeMap (const Terrain *terrain)
 Generate / reuse a material for the terrain.
 
const StringgetDescription () const
 Get the description of this profile.
 
uint8 getMaxLayers (const Terrain *terrain) const
 Get the number of layers supported.
 
const StringgetName () const
 Get the name of this profile.
 
TerrainMaterialGeneratorgetParent () const
 Get the generator which owns this profile.
 
bool getReceiveDynamicShadowsDepth () const
 Whether to use depth shadows (default false).
 
bool getReceiveDynamicShadowsEnabled () const
 Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
 
bool getReceiveDynamicShadowsLowLod () const
 Whether to use shadows on low LOD material rendering (when using composite map) (default false).
 
PSSMShadowCameraSetupgetReceiveDynamicShadowsPSSM () const
 Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
 
bool isCompositeMapEnabled () const
 Whether to use the composite map to provide a lower LOD technique in the distance (default true).
 
bool isGlobalColourMapEnabled () const
 Whether to support a global colour map over the terrain in the shader, if it's present (default true).
 
bool isLayerNormalMappingEnabled () const
 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).
 
bool isLayerSpecularMappingEnabled () const
 Whether to support specular mapping per layer in the shader (default true).
 
bool isLightmapEnabled () const
 Whether to support a light map over the terrain in the shader, if it's present (default true).
 
bool isVertexCompressionSupported () const
 Compressed vertex format supported?
 
void operator delete (void *ptr)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz)
 
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, const char *file, int line, const char *func)
 operator new, with debug line info
 
void * operator new (size_t sz, void *ptr)
 placement operator new
 
void * operator new (size_t sz, void *ptr)
 placement operator new
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz)
 
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, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void requestOptions (Terrain *terrain)
 Request the options needed from the terrain.
 
void setCompositeMapEnabled (bool enabled)
 Whether to use the composite map to provide a lower LOD technique in the distance (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).
 
void setLayerNormalMappingEnabled (bool enabled)
 Whether to support normal mapping per layer in the shader (default true).
 
void setLayerParallaxMappingEnabled (bool enabled)
 Whether to support parallax mapping per layer in the shader (default true).
 
void setLayerSpecularMappingEnabled (bool enabled)
 Whether to support specular mapping per layer in the shader (default true).
 
void setLightmapEnabled (bool enabled)
 Whether to support a light map over the terrain in the shader, if it's present (default true).
 
void setReceiveDynamicShadowsDepth (bool enabled)
 Whether to use depth shadows (default false).
 
void setReceiveDynamicShadowsEnabled (bool enabled)
 Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
 
void setReceiveDynamicShadowsLowLod (bool enabled)
 Whether to use shadows on low LOD material rendering (when using composite map) (default false).
 
void setReceiveDynamicShadowsPSSM (PSSMShadowCameraSetup *pssmSettings)
 Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
 
virtual void updateCompositeMap (const Terrain *terrain, const Rect &rect)
 Update the composite map for a terrain.
 
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.
 

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

bool mCompositeMapEnabled
 
bool mDepthShadows
 
String mDesc
 
bool mGlobalColourMapEnabled
 
bool mLayerNormalMappingEnabled
 
bool mLayerParallaxMappingEnabled
 
bool mLayerSpecularMappingEnabled
 
bool mLightmapEnabled
 
bool mLowLodShadows
 
String mName
 
TerrainMaterialGeneratormParent
 
PSSMShadowCameraSetupmPSSM
 
bool mReceiveDynamicShadows
 
ShaderHelpermShaderGen
 
String mShaderLanguage
 
bool mSM3Available
 
bool mSM4Available
 

Detailed Description

Shader model 2 profile target.

Definition at line 61 of file OgreTerrainMaterialGeneratorA.h.

Member Enumeration Documentation

◆ TechniqueType

Enumerator
HIGH_LOD 
LOW_LOD 
RENDER_COMPOSITE_MAP 

Definition at line 153 of file OgreTerrainMaterialGeneratorA.h.

Constructor & Destructor Documentation

◆ SM2Profile()

Ogre::TerrainMaterialGeneratorA::SM2Profile::SM2Profile ( TerrainMaterialGenerator * parent,
const String & name,
const String & desc )

References Ogre::TerrainMaterialGenerator::TerrainMaterialGenerator().

Referenced by Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::createFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::createFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::createFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL::createFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::createVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::createVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::createVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL::createVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultFpParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultVpParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsHelpers(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadowsHelpers(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpDynamicShadowsHelpers(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateFpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateFpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgramSource(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgram(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgramSource(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateVpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateVpDynamicShadows(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateVpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateVpDynamicShadowsParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateVpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateVpFooter(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateVpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateVpHeader(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::generateVpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSLES::generateVpLayer(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getFragmentProgramName(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getVertexProgramName(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateFpParams(), Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateParams(), and Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateVpParams().

◆ ~SM2Profile()

virtual Ogre::TerrainMaterialGeneratorA::SM2Profile::~SM2Profile ( )
virtual

Member Function Documentation

◆ _getShaderLanguage()

String Ogre::TerrainMaterialGeneratorA::SM2Profile::_getShaderLanguage ( ) const

Definition at line 149 of file OgreTerrainMaterialGeneratorA.h.

References mShaderLanguage.

◆ _isSM3Available()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::_isSM3Available ( ) const

Internal.

Definition at line 147 of file OgreTerrainMaterialGeneratorA.h.

References mSM3Available.

◆ _isSM4Available()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::_isSM4Available ( ) const

Definition at line 148 of file OgreTerrainMaterialGeneratorA.h.

References mSM4Available.

◆ addTechnique()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::addTechnique ( const MaterialPtr & mat,
const Terrain * terrain,
TechniqueType tt )
protected

◆ generate()

MaterialPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::generate ( const Terrain * terrain)
virtual

Generate / reuse a material for the terrain.

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ generateForCompositeMap()

MaterialPtr Ogre::TerrainMaterialGeneratorA::SM2Profile::generateForCompositeMap ( const Terrain * terrain)
virtual

Generate / reuse a material for the terrain.

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ getDescription()

const String & Ogre::TerrainMaterialGenerator::Profile::getDescription ( ) const
inherited

Get the description of this profile.

Definition at line 184 of file OgreTerrainMaterialGenerator.h.

References mDesc.

◆ getMaxLayers()

uint8 Ogre::TerrainMaterialGeneratorA::SM2Profile::getMaxLayers ( const Terrain * terrain) const
virtual

Get the number of layers supported.

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ getName()

const String & Ogre::TerrainMaterialGenerator::Profile::getName ( ) const
inherited

Get the name of this profile.

Definition at line 182 of file OgreTerrainMaterialGenerator.h.

References mName.

◆ getParent()

TerrainMaterialGenerator * Ogre::TerrainMaterialGenerator::Profile::getParent ( ) const
inherited

Get the generator which owns this profile.

Definition at line 180 of file OgreTerrainMaterialGenerator.h.

References Ogre::TerrainMaterialGenerator::TerrainMaterialGenerator(), and mParent.

◆ getReceiveDynamicShadowsDepth()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsDepth ( ) const

Whether to use depth shadows (default false).

Definition at line 138 of file OgreTerrainMaterialGeneratorA.h.

References mDepthShadows.

◆ getReceiveDynamicShadowsEnabled()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsEnabled ( ) const

Whether to support dynamic texture shadows received from other objects, on the terrain (default true).

Definition at line 119 of file OgreTerrainMaterialGeneratorA.h.

References mReceiveDynamicShadows.

◆ getReceiveDynamicShadowsLowLod()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsLowLod ( ) const

Whether to use shadows on low LOD material rendering (when using composite map) (default false).

Definition at line 144 of file OgreTerrainMaterialGeneratorA.h.

References mLowLodShadows.

◆ getReceiveDynamicShadowsPSSM()

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 132 of file OgreTerrainMaterialGeneratorA.h.

References mPSSM.

◆ isCompositeMapEnabled()

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 111 of file OgreTerrainMaterialGeneratorA.h.

References mCompositeMapEnabled.

◆ isGlobalColourMapEnabled()

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 95 of file OgreTerrainMaterialGeneratorA.h.

References mGlobalColourMapEnabled.

◆ isLayerNormalMappingEnabled()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerNormalMappingEnabled ( ) const

Whether to support normal mapping per layer in the shader (default true).

Definition at line 76 of file OgreTerrainMaterialGeneratorA.h.

References mLayerNormalMappingEnabled.

◆ isLayerParallaxMappingEnabled()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerParallaxMappingEnabled ( ) const

Whether to support parallax mapping per layer in the shader (default true).

Definition at line 82 of file OgreTerrainMaterialGeneratorA.h.

References mLayerParallaxMappingEnabled.

◆ isLayerSpecularMappingEnabled()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerSpecularMappingEnabled ( ) const

Whether to support specular mapping per layer in the shader (default true).

Definition at line 88 of file OgreTerrainMaterialGeneratorA.h.

References mLayerSpecularMappingEnabled.

◆ isLightmapEnabled()

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 103 of file OgreTerrainMaterialGeneratorA.h.

References mLightmapEnabled.

◆ isShadowingEnabled()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isShadowingEnabled ( TechniqueType tt,
const Terrain * terrain ) const
protected

◆ isVertexCompressionSupported()

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isVertexCompressionSupported ( ) const
virtual

Compressed vertex format supported?

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ operator delete() [1/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [4/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [5/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
void *  )
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [6/6]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
void *  )
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/4]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/4]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [3/4]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [4/4]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
const char * file,
int line,
const char * func )
inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [4/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
const char * file,
int line,
const char * func )
inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [5/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
void * ptr )
inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new() [6/6]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
void * ptr )
inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [1/4]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz)
inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/4]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz)
inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [3/4]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz,
const char * file,
int line,
const char * func )
inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [4/4]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz,
const char * file,
int line,
const char * func )
inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ requestOptions()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::requestOptions ( Terrain * terrain)
virtual

Request the options needed from the terrain.

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ setCompositeMapEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setCompositeMapEnabled ( bool enabled)

Whether to use the composite map to provide a lower LOD technique in the distance (default true).

◆ setGlobalColourMapEnabled()

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).

◆ setLayerNormalMappingEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerNormalMappingEnabled ( bool enabled)

Whether to support normal mapping per layer in the shader (default true).

◆ setLayerParallaxMappingEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerParallaxMappingEnabled ( bool enabled)

Whether to support parallax mapping per layer in the shader (default true).

◆ setLayerSpecularMappingEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerSpecularMappingEnabled ( bool enabled)

Whether to support specular mapping per layer in the shader (default true).

◆ setLightmapEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLightmapEnabled ( bool enabled)
virtual

Whether to support a light map over the terrain in the shader, if it's present (default true).

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ setReceiveDynamicShadowsDepth()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsDepth ( bool enabled)

Whether to use depth shadows (default false).

◆ setReceiveDynamicShadowsEnabled()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsEnabled ( bool enabled)

Whether to support dynamic texture shadows received from other objects, on the terrain (default true).

◆ setReceiveDynamicShadowsLowLod()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsLowLod ( bool enabled)

Whether to use shadows on low LOD material rendering (when using composite map) (default false).

◆ setReceiveDynamicShadowsPSSM()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsPSSM ( PSSMShadowCameraSetup * pssmSettings)

Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).

◆ updateCompositeMap()

virtual void Ogre::TerrainMaterialGenerator::Profile::updateCompositeMap ( const Terrain * terrain,
const Rect & rect )
virtualinherited

Update the composite map for a terrain.

Referenced by Ogre::TerrainMaterialGenerator::updateCompositeMap().

◆ updateParams()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::updateParams ( const MaterialPtr & mat,
const Terrain * terrain )
virtual

Update params for a terrain.

Implements Ogre::TerrainMaterialGenerator::Profile.

◆ updateParamsForCompositeMap()

void Ogre::TerrainMaterialGeneratorA::SM2Profile::updateParamsForCompositeMap ( const MaterialPtr & mat,
const Terrain * terrain )
virtual

Update params for a terrain.

Implements Ogre::TerrainMaterialGenerator::Profile.

Member Data Documentation

◆ mCompositeMapEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mCompositeMapEnabled
protected

Definition at line 263 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isCompositeMapEnabled().

◆ mDepthShadows

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mDepthShadows
protected

Definition at line 266 of file OgreTerrainMaterialGeneratorA.h.

Referenced by getReceiveDynamicShadowsDepth().

◆ mDesc

String Ogre::TerrainMaterialGenerator::Profile::mDesc
protectedinherited

Definition at line 172 of file OgreTerrainMaterialGenerator.h.

Referenced by Profile(), Profile(), and getDescription().

◆ mGlobalColourMapEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mGlobalColourMapEnabled
protected

Definition at line 261 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isGlobalColourMapEnabled().

◆ mLayerNormalMappingEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLayerNormalMappingEnabled
protected

Definition at line 258 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isLayerNormalMappingEnabled().

◆ mLayerParallaxMappingEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLayerParallaxMappingEnabled
protected

Definition at line 259 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isLayerParallaxMappingEnabled().

◆ mLayerSpecularMappingEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLayerSpecularMappingEnabled
protected

Definition at line 260 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isLayerSpecularMappingEnabled().

◆ mLightmapEnabled

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLightmapEnabled
protected

Definition at line 262 of file OgreTerrainMaterialGeneratorA.h.

Referenced by isLightmapEnabled().

◆ mLowLodShadows

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mLowLodShadows
protected

Definition at line 267 of file OgreTerrainMaterialGeneratorA.h.

Referenced by getReceiveDynamicShadowsLowLod().

◆ mName

String Ogre::TerrainMaterialGenerator::Profile::mName
protectedinherited

Definition at line 171 of file OgreTerrainMaterialGenerator.h.

Referenced by Profile(), Profile(), and getName().

◆ mParent

TerrainMaterialGenerator* Ogre::TerrainMaterialGenerator::Profile::mParent
protectedinherited

Definition at line 170 of file OgreTerrainMaterialGenerator.h.

Referenced by Profile(), Profile(), and getParent().

◆ mPSSM

PSSMShadowCameraSetup* Ogre::TerrainMaterialGeneratorA::SM2Profile::mPSSM
protected

Definition at line 265 of file OgreTerrainMaterialGeneratorA.h.

Referenced by getReceiveDynamicShadowsPSSM().

◆ mReceiveDynamicShadows

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mReceiveDynamicShadows
protected

Definition at line 264 of file OgreTerrainMaterialGeneratorA.h.

Referenced by getReceiveDynamicShadowsEnabled().

◆ mShaderGen

ShaderHelper* Ogre::TerrainMaterialGeneratorA::SM2Profile::mShaderGen
protected

Definition at line 257 of file OgreTerrainMaterialGeneratorA.h.

◆ mShaderLanguage

String Ogre::TerrainMaterialGeneratorA::SM2Profile::mShaderLanguage
protected

Definition at line 270 of file OgreTerrainMaterialGeneratorA.h.

Referenced by _getShaderLanguage().

◆ mSM3Available

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mSM3Available
protected

Definition at line 268 of file OgreTerrainMaterialGeneratorA.h.

Referenced by _isSM3Available().

◆ mSM4Available

bool Ogre::TerrainMaterialGeneratorA::SM2Profile::mSM4Available
protected

Definition at line 269 of file OgreTerrainMaterialGeneratorA.h.

Referenced by _isSM4Available().


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