C# Class BananaMpq.Geometry.Builders.SquareMeshBuilder

Datei anzeigen Open project: sgraf812/BananaMpq Class Usage Examples

Private Properties

Property Type Description
GetIndexAt int
IsOutOfBounds bool
MakeTriangle IndexedTriangleWithNormal

Public Methods

Method Description
BuildSquareMesh ( Func shouldNotRenderTile, MaterialFlags materialProperties, RectangleF bounds, string description = null ) : SceneObject
SquareMeshBuilder ( float heightMap, System.Vector3 offset, float tileSize, System.Matrix rootTransform = null ) : System

Private Methods

Method Description
GetIndexAt ( int row, int col ) : int
IsOutOfBounds ( int index, RectangleF bounds ) : bool
MakeTriangle ( int a, int b, int c ) : IndexedTriangleWithNormal

Method Details

BuildSquareMesh() public method

public BuildSquareMesh ( Func shouldNotRenderTile, MaterialFlags materialProperties, RectangleF bounds, string description = null ) : SceneObject
shouldNotRenderTile Func
materialProperties MaterialFlags
bounds RectangleF
description string
return SceneObject

SquareMeshBuilder() public method

public SquareMeshBuilder ( float heightMap, System.Vector3 offset, float tileSize, System.Matrix rootTransform = null ) : System
heightMap float
offset System.Vector3
tileSize float
rootTransform System.Matrix
return System