Struct SubMeshTriangle
Helper struct that stores the triangle index and tile type.
Namespace: TycoonTerrain.Core.Rendering
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct SubMeshTriangle
Constructors
SubMeshTriangle(TileType, Int32)
Initializes a new instance of the SubMeshTriangle struct.
Declaration
public SubMeshTriangle(TileType terrainType, int triangleIndex)
Parameters
Type | Name | Description |
---|---|---|
TileType | terrainType | Type of the terrain. |
Int32 | triangleIndex | Index of the triangle. |
Properties
TerrainType
Gets the type of the terrain.
Declaration
public TileType TerrainType { get; }
Property Value
Type | Description |
---|---|
TileType | The type of the terrain. |
TriangleIndex
Gets the index of the triangle.
Declaration
public int TriangleIndex { get; }
Property Value
Type | Description |
---|---|
Int32 | The index of the triangle. |