C# Class MeshMaker2D, tutorials

ファイルを表示 Open project: poeticmatter/tutorials Class Usage Examples

Public Methods

Method Description
MeshMaker2D ( int width, int height, bool centered ) : System.Collections
getMesh ( ) : Mesh
getUVmap ( int atlasWidth, int atlasHeight, int atlasIndices, float buffer ) : Vector2[]

Private Methods

Method Description
makeNormals ( ) : void
makeQuads ( ) : void
makeTriangles ( int index ) : void
makeUVmap ( int x, int y ) : void
makeVertices ( int x, int y, int index ) : void

Method Details

MeshMaker2D() public method

public MeshMaker2D ( int width, int height, bool centered ) : System.Collections
width int
height int
centered bool
return System.Collections

getMesh() public method

public getMesh ( ) : Mesh
return Mesh

getUVmap() public method

public getUVmap ( int atlasWidth, int atlasHeight, int atlasIndices, float buffer ) : Vector2[]
atlasWidth int
atlasHeight int
atlasIndices int
buffer float
return Vector2[]