C# Class CSharpGL.Chain

链条。若干个点用直线连接起来。

使用ZeroIndexBuffer

Inheritance: IBufferable
Show file Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
Chain ( int pointCount = 10, int length = 5, int width = 5, int height = 5 ) : System

链条。若干个点用直线连接起来。

GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

Method Details

Chain() public method

链条。若干个点用直线连接起来。
public Chain ( int pointCount = 10, int length = 5, int width = 5, int height = 5 ) : System
pointCount int 有多少个点
length int 点的范围(长度)
width int 点的范围(宽度)
height int 点的范围(高度)
return System

GetIndexBuffer() public method

public GetIndexBuffer ( ) : IndexBuffer
return IndexBuffer

GetVertexAttributeBuffer() public method

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

UsesZeroIndexBuffer() public method

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