C# Class CSharpGL.ZeroAttributeModel

Bufferable model with zero vertex attribute.
Inheritance: IBufferable
Mostra file Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

UsesZeroIndexBuffer ( ) : bool

ZeroAttributeModel ( DrawMode mode, int firstVertex, int vertexCount, int primCount = 1 ) : System

Bufferable model with zero vertex attribute.

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

UsesZeroIndexBuffer() public method

public UsesZeroIndexBuffer ( ) : bool
return bool

ZeroAttributeModel() public method

Bufferable model with zero vertex attribute.
public ZeroAttributeModel ( DrawMode mode, int firstVertex, int vertexCount, int primCount = 1 ) : System
mode DrawMode 渲染模式。
firstVertex int 要渲染的第一个顶点的位置。Index of first vertex to be rendered.
vertexCount int 要渲染多少个元素?How many vertexes to be rendered?
primCount int primCount in instanced rendering.
return System