C# Class CSharpGL.Ground

正方形
Inheritance: IBufferable
Datei anzeigen Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System

UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

Private Methods

Method Description
GenerateColors ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[]
GeneratePositions ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[]

Method Details

GetIndexBuffer() public method

public GetIndexBuffer ( ) : IndexBuffer
return IndexBuffer

GetVertexAttributeBuffer() public method

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
return VertexBuffer

Ground() public method

public Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System
squreCountPerUnit int 每个world space里的1个距离单位有几个方块?
xUnit int 在x轴正方向画多少个距离单位?
zUnit int 在z轴正方向画多少个距离单位?
return System

UsesZeroIndexBuffer() public method

Uses ZeroIndexBuffer or OneIndexBuffer.
public UsesZeroIndexBuffer ( ) : bool
return bool