C# Class GridViewer.CatesianGrid

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

Public Methods

Method Description
CatesianGrid ( CatesianGridderSource dataSource, List gridProps, float minColorCode, float maxColorCode, int defaultBlockPropertyIndex ) : System
GetIndexBuffer ( ) : IndexBuffer
GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
UpdateColor ( TracyEnergy property ) : void
UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

Private Methods

Method Description
GetColorBuffer ( string varNameInShader ) : VertexBuffer
GetPositionBuffer ( string varNameInShader ) : VertexBuffer
GetTextureCoords ( GridBlockProperty property ) : float[]

Method Details

CatesianGrid() public method

public CatesianGrid ( CatesianGridderSource dataSource, List gridProps, float minColorCode, float maxColorCode, int defaultBlockPropertyIndex ) : System
dataSource SimLab.GridSource.CatesianGridderSource
gridProps List
minColorCode float
maxColorCode float
defaultBlockPropertyIndex int
return System

GetIndexBuffer() public method

public GetIndexBuffer ( ) : IndexBuffer
return CSharpGL.IndexBuffer

GetVertexAttributeBuffer() public method

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
return CSharpGL.VertexBuffer

UpdateColor() public method

public UpdateColor ( TracyEnergy property ) : void
property TracyEnergy
return void

UsesZeroIndexBuffer() public method

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