Property | Type | Description | |
---|---|---|---|
mActiveProfile | Profile | ||
mChangeCounter | int | ||
mCompositeMapCam | |||
mCompositeMapLight | |||
mCompositeMapPlane | ManualObject | ||
mCompositeMapRTT | Axiom.Core.Texture | ||
mCompositeMapSM | |||
mDebugLevel | uint | ||
mLayerDecl | |||
mProfiles | List |
Method | Description | |
---|---|---|
CanGenerateUsingDeclaration ( |
Whether this generator can generate a material for a given declaration. By default this only returns true if the declaration is equal to the standard one returned from getLayerDeclaration, but if a subclass wants to be flexible to generate materials for other declarations too, it can specify here.
|
|
Dispose ( ) : void | ||
Generate ( Axiom.Components.Terrain.Terrain terrain ) : |
Generate a material for the given terrain using the active profile.
|
|
GenerateForCompositeMap ( Axiom.Components.Terrain.Terrain terrain ) : |
Generate a material for the given composite map of the terrain using the active profile.
|
|
GetMaxLayers ( Axiom.Components.Terrain.Terrain terrain ) : byte |
Get the maximum number of layers supported with the given terrain.
|
|
MarkChanged ( ) : void |
Internal method - indicates that a change has been made that would require material regeneration
|
|
RenderCompositeMap ( int size, |
Helper method to render a composite map.
|
|
RequestOption ( Axiom.Components.Terrain.Terrain terrain ) : void |
Triggers the generator to request the options that it needs.
|
|
SetActiveProfile ( string name ) : void |
Set the active profile by name.
|
|
UpdateCompositeMap ( Axiom.Components.Terrain.Terrain terrain, |
Update the composite map for a terrain. The composite map for a terrain must match what the terrain should look like at distance. This method will only be called in the render thread so the generator is free to render into a texture to support this, so long as the results are blitted into the Terrain's own composite map afterwards.
|
|
UpdateParams ( |
Update parameters for the given terrain using the active profile.
|
|
UpdateParamsForCompositeMap ( |
Update parameters for the given terrain using the active profile.
|
public CanGenerateUsingDeclaration ( |
||
decl | ||
return | bool |
public Generate ( Axiom.Components.Terrain.Terrain terrain ) : |
||
terrain | Axiom.Components.Terrain.Terrain | |
return |
public GenerateForCompositeMap ( Axiom.Components.Terrain.Terrain terrain ) : |
||
terrain | Axiom.Components.Terrain.Terrain | |
return |
public GetMaxLayers ( Axiom.Components.Terrain.Terrain terrain ) : byte | ||
terrain | Axiom.Components.Terrain.Terrain | |
return | byte |
public RenderCompositeMap ( int size, |
||
size | int | The requested composite map size |
rect | The region of the composite map to update, in image space | |
mat | The material to use to render the map | |
destCompositeMap | Axiom.Core.Texture | |
return | void |
public RequestOption ( Axiom.Components.Terrain.Terrain terrain ) : void | ||
terrain | Axiom.Components.Terrain.Terrain | |
return | void |
public SetActiveProfile ( string name ) : void | ||
name | string | name of the profile |
return | void |
public UpdateCompositeMap ( Axiom.Components.Terrain.Terrain terrain, |
||
terrain | Axiom.Components.Terrain.Terrain | |
rect | ||
return | void |
public UpdateParams ( |
||
mat | ||
terrain | Axiom.Components.Terrain.Terrain | |
return | void |
public UpdateParamsForCompositeMap ( |
||
mat | ||
terrain | Axiom.Components.Terrain.Terrain | |
return | void |
protected Camera,Axiom.Core mCompositeMapCam | ||
return |
protected Light,Axiom.Core mCompositeMapLight | ||
return |
protected ManualObject mCompositeMapPlane | ||
return | ManualObject |
protected Texture,Axiom.Core mCompositeMapRTT | ||
return | Axiom.Core.Texture |
protected SceneManager,Axiom.Core mCompositeMapSM | ||
return |
protected TerrainLayerDeclaration,Axiom.Components.Terrain mLayerDecl | ||
return |