C# 클래스 CSharpGL.Ground

正方形
상속: IBufferable
파일 보기 프로젝트 열기: bitzhuwei/CSharpGL 1 사용 예제들

공개 메소드들

메소드 설명
GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System

UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

비공개 메소드들

메소드 설명
GenerateColors ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[]
GeneratePositions ( int squreCountPerUnit, int xUnit, int zUnit ) : vec3[]

메소드 상세

GetIndexBuffer() 공개 메소드

public GetIndexBuffer ( ) : IndexBuffer
리턴 IndexBuffer

GetVertexAttributeBuffer() 공개 메소드

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
리턴 VertexBuffer

Ground() 공개 메소드

public Ground ( int squreCountPerUnit = 10, int xUnit = 10, int zUnit = 10 ) : System
squreCountPerUnit int 每个world space里的1个距离单位有几个方块?
xUnit int 在x轴正方向画多少个距离单位?
zUnit int 在z轴正方向画多少个距离单位?
리턴 System

UsesZeroIndexBuffer() 공개 메소드

Uses ZeroIndexBuffer or OneIndexBuffer.
public UsesZeroIndexBuffer ( ) : bool
리턴 bool