C# Class CSharpGL.Demos.TrefoilKnotModel

Trefoil knot model.
Inheritance: IBufferable
ファイルを表示 Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer
GetPosition ( double t ) : vec3
GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

获取指定的顶点属性缓存。

Gets specified vertex buffer object.

TrefoilKnotModel ( double interval = 0.02 ) : System
UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

Private Methods

Method Description
GetPositionBuffer ( string varNameInShader ) : VertexBuffer
GetTexCoordBuffer ( string varNameInShader ) : VertexBuffer
GetUCount ( double interval ) : int

Method Details

GetIndexBuffer() public method

public GetIndexBuffer ( ) : IndexBuffer
return IndexBuffer

GetPosition() public method

public GetPosition ( double t ) : vec3
t double
return vec3

GetVertexAttributeBuffer() public method

获取指定的顶点属性缓存。

Gets specified vertex buffer object.

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string buffer name(Gets this name from 'strPosition' etc.
varNameInShader string name in vertex shader like `in vec3 in_Position;`.
return VertexBuffer

TrefoilKnotModel() public method

public TrefoilKnotModel ( double interval = 0.02 ) : System
interval double
return System

UsesZeroIndexBuffer() public method

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