C# Class CSharpGL.Sphere

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

使用OneIndexBuffer

Inheritance: IBufferable
Afficher le fichier Open project: bitzhuwei/CSharpGL Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public GetIndexBuffer ( ) : IndexBuffer
Résultat IndexBuffer

GetVertexAttributeBuffer() public méthode

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
Résultat VertexBuffer

Sphere() public méthode

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

UsesZeroIndexBuffer() public méthode

Uses ZeroIndexBuffer or OneIndexBuffer.
public UsesZeroIndexBuffer ( ) : bool
Résultat bool