C# Class SimLab.DynamicUnstructureGrid

Inheritance: SimLabGrid, IRenderable
Show file Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
DynamicUnstructureGrid ( SharpGL.OpenGL gl, IScientificCamera camera ) : System
Init ( DynamicUnstructureGeometry geometry ) : void
SetFractionTextureCoords ( VertexBuffer textureCoords ) : void
SetMatrixTextureCoords ( VertexBuffer matrixTextureCoordsBufferData ) : void

设置基质的纹理坐标(用于上色)

Protected Methods

Method Description
AfterRendering ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
BeforeRendering ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
DisposeUnmanagedResources ( ) : void
UpdateFractionTextureCoords ( VertexBuffer textureCoords ) : void

Private Methods

Method Description
CreateFractionVertexArrayObject ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
CreateVertexArrayObject ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
DoRenderFraction ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
DoRenderMatrix ( SharpGL.OpenGL gl, RenderMode renderMode ) : void

渲染基质

IRenderable ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
InitShader ( SharpGL.OpenGL gl, RenderMode renderMode ) : SharpGL.Shaders.ShaderProgram

Method Details

AfterRendering() protected method

protected AfterRendering ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
gl SharpGL.OpenGL
renderMode RenderMode
return void

BeforeRendering() protected method

protected BeforeRendering ( SharpGL.OpenGL gl, RenderMode renderMode ) : void
gl SharpGL.OpenGL
renderMode RenderMode
return void

DisposeUnmanagedResources() protected method

protected DisposeUnmanagedResources ( ) : void
return void

DynamicUnstructureGrid() public method

public DynamicUnstructureGrid ( SharpGL.OpenGL gl, IScientificCamera camera ) : System
gl SharpGL.OpenGL
camera IScientificCamera
return System

Init() public method

public Init ( DynamicUnstructureGeometry geometry ) : void
geometry DynamicUnstructureGeometry
return void

SetFractionTextureCoords() public method

public SetFractionTextureCoords ( VertexBuffer textureCoords ) : void
textureCoords VertexBuffer
return void

SetMatrixTextureCoords() public method

设置基质的纹理坐标(用于上色)
public SetMatrixTextureCoords ( VertexBuffer matrixTextureCoordsBufferData ) : void
matrixTextureCoordsBufferData VertexBuffer
return void

UpdateFractionTextureCoords() protected method

protected UpdateFractionTextureCoords ( VertexBuffer textureCoords ) : void
textureCoords VertexBuffer
return void