C# Class CSharpGL.Sphere

一个球体的模型。 http://images.cnblogs.com/cnblogs_com/bitzhuwei/554293/o_sphere.jpg

使用OneIndexBuffer

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

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

Sphere ( float radius = 1.0f, int latitudeParts = 10, int longitudeParts = 40 ) : System

一个球体的模型。

UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

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

Sphere() public method

一个球体的模型。
public Sphere ( float radius = 1.0f, int latitudeParts = 10, int longitudeParts = 40 ) : System
radius float
latitudeParts int 用纬线把地球切割为几块。
longitudeParts int 用经线把地球切割为几块。
return System

UsesZeroIndexBuffer() public method

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