AlphaFramework API
1.0.3
|
Interactivley changes the texture ID of an area on a ITerrain. More...
Public Member Functions | |
Texture (ITerrain terrain, Action refreshHandler, byte textureID) | |
Creates a new texture index modifier. More... | |
override void | Apply (Vector2 terrainCoords, TerrainBrush brush) |
Applies and accumulates a modification to the Terrain. | |
override IUndoCommand | GetCommand () |
Creates a pre-executed undo command representing the accumulated Apply calls to this instance. | |
Additional Inherited Members | |
Protected Member Functions inherited from AlphaFramework.Editor.World.TerrainModifiers.Base | |
Base (ITerrain terrain) | |
Creates a new Terrain modifier. More... | |
Protected Attributes inherited from AlphaFramework.Editor.World.TerrainModifiers.Base | |
readonly ExpandableRectangleArray< byte > | OldData = new ExpandableRectangleArray<byte>() |
Used to collect data as it was before the modifications. More... | |
readonly ExpandableRectangleArray< byte > | NewData = new ExpandableRectangleArray<byte>() |
Used to collect data as it is after the modifcations. More... | |
readonly ITerrain | Terrain |
The Terrain to modify. More... | |
Interactivley changes the texture ID of an area on a ITerrain.
|
inline |
Creates a new texture index modifier.
terrain | The ITerrain to modify. |
refreshHandler | Called when the OmegaEngine.Graphics.Renderables.Terrain needs to be reset. |
textureID | The new texture ID to set. |